Edit

Share via


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.

protected:
 static System::DirectoryServices::AccountManagement::Principal ^ FindByIdentityWithType(System::DirectoryServices::AccountManagement::PrincipalContext ^ context, Type ^ principalType, System::DirectoryServices::AccountManagement::IdentityType identityType, System::String ^ identityValue);
protected static System.DirectoryServices.AccountManagement.Principal FindByIdentityWithType (System.DirectoryServices.AccountManagement.PrincipalContext context, Type principalType, System.DirectoryServices.AccountManagement.IdentityType identityType, string identityValue);
[System.Security.SecurityCritical]
protected static System.DirectoryServices.AccountManagement.Principal FindByIdentityWithType (System.DirectoryServices.AccountManagement.PrincipalContext context, Type principalType, System.DirectoryServices.AccountManagement.IdentityType identityType, string identityValue);
static member FindByIdentityWithType : System.DirectoryServices.AccountManagement.PrincipalContext * Type * System.DirectoryServices.AccountManagement.IdentityType * string -> System.DirectoryServices.AccountManagement.Principal
[<System.Security.SecurityCritical>]
static member FindByIdentityWithType : System.DirectoryServices.AccountManagement.PrincipalContext * Type * System.DirectoryServices.AccountManagement.IdentityType * string -> System.DirectoryServices.AccountManagement.Principal
Protected Shared Function FindByIdentityWithType (context As PrincipalContext, principalType As Type, identityType As IdentityType, identityValue As String) As Principal

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

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.

protected:
 static System::DirectoryServices::AccountManagement::Principal ^ FindByIdentityWithType(System::DirectoryServices::AccountManagement::PrincipalContext ^ context, Type ^ principalType, System::String ^ identityValue);
protected static System.DirectoryServices.AccountManagement.Principal FindByIdentityWithType (System.DirectoryServices.AccountManagement.PrincipalContext context, Type principalType, string identityValue);
[System.Security.SecurityCritical]
protected static System.DirectoryServices.AccountManagement.Principal FindByIdentityWithType (System.DirectoryServices.AccountManagement.PrincipalContext context, Type principalType, string identityValue);
static member FindByIdentityWithType : System.DirectoryServices.AccountManagement.PrincipalContext * Type * string -> System.DirectoryServices.AccountManagement.Principal
[<System.Security.SecurityCritical>]
static member FindByIdentityWithType : System.DirectoryServices.AccountManagement.PrincipalContext * Type * string -> System.DirectoryServices.AccountManagement.Principal
Protected Shared Function FindByIdentityWithType (context As PrincipalContext, principalType As Type, identityValue As String) As Principal

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