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