| Methods / Group, Role, and Rights |
| Name | Type | Description |
|---|---|---|
| roleName | string | A string that contains the name of a role. |
| assignee | string | The registered user name or group name. |
| assigneeType | string | The type for the assignee: Either user or group. |
| clientData | string | A string that contains the client data. If clientData is null, the system will keep existing client data, otherwise the relevant data would be overwritten. |
| objectID | string | Reserved for future use. Leave null. |
IWFAdminService svc = GetAdminService();
string roleName = "Administrative";
string assignee = @"Demo3\Administrator";
string assigneeType = "User";
try
{
WFRoleMember member = svc.AddRoleMember(roleName, assign,
assignType, "", null, null);
}
catch (Exception ex)
{
Console.WriteLine("Failed! " + ShUtil.GetSoapMessage(ex));
}