22 references to IdentityType
System.DirectoryServices.AccountManagement (22)
System\DirectoryServices\AccountManagement\AuthZSet.cs (1)
358
group = GroupPrincipal.FindByIdentity(ctx,
IdentityType
.Sid, sidObj.ToString());
System\DirectoryServices\AccountManagement\Computer.cs (1)
90
public static new ComputerPrincipal FindByIdentity(PrincipalContext context,
IdentityType
identityType, string identityValue)
System\DirectoryServices\AccountManagement\Group.cs (1)
181
public static new GroupPrincipal FindByIdentity(PrincipalContext context,
IdentityType
identityType, string identityValue)
System\DirectoryServices\AccountManagement\IdentityType.cs (6)
22
{
IdentityType
.SamAccountName, IdentityTypeStringMap.SamAccount},
23
{
IdentityType
.Name, IdentityTypeStringMap.Name},
24
{
IdentityType
.UserPrincipalName, IdentityTypeStringMap.Upn},
25
{
IdentityType
.DistinguishedName, IdentityTypeStringMap.DistinguishedName},
26
{
IdentityType
.Sid, IdentityTypeStringMap.Sid},
27
{
IdentityType
.Guid, IdentityTypeStringMap.Guid}
System\DirectoryServices\AccountManagement\Principal.cs (7)
287
public static Principal FindByIdentity(PrincipalContext context,
IdentityType
identityType, string identityValue)
554
public bool IsMemberOf(PrincipalContext context,
IdentityType
identityType, string identityValue)
912
protected static Principal FindByIdentityWithType(PrincipalContext context, Type principalType,
IdentityType
identityType, string identityValue)
920
if ((identityType <
IdentityType
.SamAccountName) || (identityType >
IdentityType
.Guid))
921
throw new InvalidEnumArgumentException(nameof(identityType), (int)identityType, typeof(
IdentityType
));
926
private static Principal FindByIdentityWithTypeHelper(PrincipalContext context, Type principalType, Nullable<
IdentityType
> identityType, string identityValue, DateTime refDate)
System\DirectoryServices\AccountManagement\PrincipalCollection.cs (3)
287
public void Add(PrincipalContext context,
IdentityType
identityType, string identityValue)
434
public bool Remove(PrincipalContext context,
IdentityType
identityType, string identityValue)
583
public bool Contains(PrincipalContext context,
IdentityType
identityType, string identityValue)
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx.cs (1)
696
UserPrincipal u = UserPrincipal.FindByIdentity(this.OwningContext,
IdentityType
.Sid, Sid.ToString());
System\DirectoryServices\AccountManagement\User.cs (2)
205
user = UserPrincipal.FindByIdentity(context,
IdentityType
.Sid, sidObj.ToString());
259
public static new UserPrincipal FindByIdentity(PrincipalContext context,
IdentityType
identityType, string identityValue)