예제 #1
0
 public static ComputerPrincipal FindByIdentity(PrincipalContext context, IdentityType identityType, string identityValue)
 {
     return((ComputerPrincipal)Principal.FindByIdentityWithType(context, typeof(ComputerPrincipal), identityType, identityValue));
 }
예제 #2
0
 public static GroupPrincipal FindByIdentity(PrincipalContext context, string identityValue)
 {
     return((GroupPrincipal)Principal.FindByIdentityWithType(context, typeof(GroupPrincipal), identityValue));
 }