| Methods / Group, Role, and Rights | |
Web Services
Retrieves a role object by name.
public virtual WFRole GetRole(string roleName);
| Name | Description |
|---|---|
roleName |
|
WFRole object with the specified role name.
IWFAdminService svc = GetAdminService();
string rolName = ...// for example, "Administrators"
try
{
WFRole role = adminService.GetRole(rolName);
Console.WriteLine("Name = '" + role.Name + "' Description = '" +
role.Description + "'");
}
catch (Exception ex)
{
Console.WriteLine("Failed! " + ShUtil.GetSoapMessage(ex));
}
/* This example produces the following results:
Name = 'Administrators' Description = 'Administrators have complete access to maintain system' */
3.2.0.4 and higher