ActiveDirectoryService.GetRoles Method
- Namespace:
- Weavy.Core.Services
- Assembly:
- Weavy.Core.dll
GetRoles(PrincipalContext, IdentityType, String)
Get the list of roles of which the specified user is a member.
public static IEnumerable GetRoles(PrincipalContext context, IdentityType identityType, string identityValue)
Parameters
- context
- System.DirectoryServices.AccountManagement.PrincipalContext
- identity
Type - System.DirectoryServices.AccountManagement.IdentityType
- identity
Value - System.String
Returns
System.Collections.Generic.IEnumerable{Weavy.Core.Models.Role}
A list of