SalesBuy
1-855-856-7678
Technical SupportSupport
The following code example shows how to retrieve the name of the role that is associated with the role instance:
foreach (var role in RoleEnvironment.Roles) { foreach (var roleInstance in role.Value.Instances) { Trace.WriteLine("Role for the instance: " + roleInstance.Role.Name, "Information"); } }