ActiveDirectoryService.GetRole Method
- Namespace:
- Weavy.Core.Services
- Assembly:
- Weavy.Core.dll
GetRole(PrincipalContext, IdentityType, string)
Returns a Role from Active Directory.
public static Role GetRole(PrincipalContext context, IdentityType identityType, string identityValue)
Parameters
- context
- System.DirectoryServices.AccountManagement.PrincipalContext
- identity
Type - System.DirectoryServices.AccountManagement.IdentityType
A IdentityType enumeration value that specifies the format of the identityValue parameter.
- identity
Value - string
The identity of the user principal.