Principal.FindByIdentityWithType Method

Definition

Returns a principal object that matches the specified identity type, and value. This method is called by the implementation of the derived-class FindByIdentity method to restrict the search to the derived class type and is not intended to be called directly from your code.

Overloads

FindByIdentityWithType(PrincipalContext, Type, IdentityType, String)

Returns a principal object that matches the specified identity type, and value. This method is called by the implementation of the derived-class FindByIdentity method to restrict the search to the derived class type and is not intended to be called directly from your code.

FindByIdentityWithType(PrincipalContext, Type, String)

Returns a principal object that matches the specified identity type, and value. This method is called by the implementation of the derived-class FindByIdentity method to restrict the search to the derived class type and is not intended to be called directly from your code.

FindByIdentityWithType(PrincipalContext, Type, IdentityType, String)

Source:
Principal.cs
Source:
Principal.cs
Source:
Principal.cs

Returns a principal object that matches the specified identity type, and value. This method is called by the implementation of the derived-class FindByIdentity method to restrict the search to the derived class type and is not intended to be called directly from your code.

C#
protected static System.DirectoryServices.AccountManagement.Principal FindByIdentityWithType(System.DirectoryServices.AccountManagement.PrincipalContext context, Type principalType, System.DirectoryServices.AccountManagement.IdentityType identityType, string identityValue);
C#
[System.Security.SecurityCritical]
protected static System.DirectoryServices.AccountManagement.Principal FindByIdentityWithType(System.DirectoryServices.AccountManagement.PrincipalContext context, Type principalType, System.DirectoryServices.AccountManagement.IdentityType identityType, string identityValue);

Parameters

context
PrincipalContext

The PrincipalContext that specifies the server or domain against which operations are performed.

principalType
Type

The type of object for which results are returned. This must of type Principal or a type derived from the Principal class.

identityType
IdentityType

An IdentityType enumeration value that specifies the type of the identity value.

identityValue
String

The identity of the principal.

Returns

A Principal object that matches the specified identity value and type or null if no matches are found.

Attributes

Applies to

.NET 10 (package-provided) и друге верзије
Производ Верзије
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

FindByIdentityWithType(PrincipalContext, Type, String)

Source:
Principal.cs
Source:
Principal.cs
Source:
Principal.cs

Returns a principal object that matches the specified identity type, and value. This method is called by the implementation of the derived-class FindByIdentity method to restrict the search to the derived class type and is not intended to be called directly from your code.

C#
protected static System.DirectoryServices.AccountManagement.Principal FindByIdentityWithType(System.DirectoryServices.AccountManagement.PrincipalContext context, Type principalType, string identityValue);
C#
[System.Security.SecurityCritical]
protected static System.DirectoryServices.AccountManagement.Principal FindByIdentityWithType(System.DirectoryServices.AccountManagement.PrincipalContext context, Type principalType, string identityValue);

Parameters

context
PrincipalContext

The PrincipalContext that specifies the server or domain against which operations are performed.

principalType
Type

The type of object for which results are returned. This must of type Principal or a type derived from the Principal class.

identityValue
String

The identity of the principal.

Returns

A Principal object that matches the specified identity value and type, or null if no matches are found.

Attributes

Applies to

.NET 10 (package-provided) и друге верзије
Производ Верзије
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)