Principal.FindByIdentityWithType 方法

定义

返回与指定标识类型相匹配的主体对象和值。Returns a principal object that matches the specified identity type, and value. 此方法由派生类 FindByIdentity 方法的实现调用,将搜索限制为派生类类型,不适合直接从代码中调用。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)

返回与指定标识类型相匹配的主体对象和值。Returns a principal object that matches the specified identity type, and value. 此方法由派生类 FindByIdentity 方法的实现调用,将搜索限制为派生类类型,不适合直接从代码中调用。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. 此方法由派生类 FindByIdentity 方法的实现调用,将搜索限制为派生类类型,不适合直接从代码中调用。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)

返回与指定标识类型相匹配的主体对象和值。Returns a principal object that matches the specified identity type, and value. 此方法由派生类 FindByIdentity 方法的实现调用,将搜索限制为派生类类型,不适合直接从代码中调用。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

参数

context
PrincipalContext

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. 它必须为 Principal 类型或从 Principal 类派生的类型。This must of type Principal or a type derived from the Principal class.

identityType
IdentityType

一个 IdentityType 枚举值,该值指定标识值的类型。An IdentityType enumeration value that specifies the type of the identity value.

identityValue
String

主体的标识。The identity of the principal.

返回

Principal

与指定标识值和类型相匹配的 Principal 对象;若未找到匹配则为 null。A Principal object that matches the specified identity value and type or null if no matches are found.

属性

适用于

FindByIdentityWithType(PrincipalContext, Type, String)

返回与指定标识类型相匹配的主体对象和值。Returns a principal object that matches the specified identity type, and value. 此方法由派生类 FindByIdentity 方法的实现调用,将搜索限制为派生类类型,不适合直接从代码中调用。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

参数

context
PrincipalContext

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. 它必须为 Principal 类型或从 Principal 类派生的类型。This must of type Principal or a type derived from the Principal class.

identityValue
String

主体的标识。The identity of the principal.

返回

Principal

与指定标识值和类型相匹配的 Principal 对象;若未找到匹配,则为 null。A Principal object that matches the specified identity value and type, or null if no matches are found.

属性

适用于