示例#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));
 }