Principal.FindByIdentityWithType 方法

定義

傳回符合指定的識別類型和值的主體物件。 這個方法會由衍生類別 FindByIdentity 方法的實作來呼叫,以將搜尋限制為衍生類別類型,而且不適合從您的程式碼中直接呼叫。

多載

FindByIdentityWithType(PrincipalContext, Type, IdentityType, String)

傳回符合指定的識別類型和值的主體物件。 這個方法會由衍生類別 FindByIdentity 方法的實作來呼叫,以將搜尋限制為衍生類別類型,而且不適合從您的程式碼中直接呼叫。

FindByIdentityWithType(PrincipalContext, Type, String)

傳回符合指定的識別類型和值的主體物件。 這個方法會由衍生類別 FindByIdentity 方法的實作來呼叫,以將搜尋限制為衍生類別類型,而且不適合從您的程式碼中直接呼叫。

FindByIdentityWithType(PrincipalContext, Type, IdentityType, String)

來源:
Principal.cs
來源:
Principal.cs
來源:
Principal.cs

傳回符合指定的識別類型和值的主體物件。 這個方法會由衍生類別 FindByIdentity 方法的實作來呼叫,以將搜尋限制為衍生類別類型,而且不適合從您的程式碼中直接呼叫。

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

principalType
Type

要為其傳回結果之物件的型別。 必須是型別 Principal 或衍生自 Principal 類別的型別。

identityType
IdentityType

IdentityType 列舉值,指定識別值的型別。

identityValue
String

主體的身分識別。

傳回

符合指定的身分識別值和類型的 Principal 物件,如果找不到相符項目則為 null。

屬性

適用於

FindByIdentityWithType(PrincipalContext, Type, String)

來源:
Principal.cs
來源:
Principal.cs
來源:
Principal.cs

傳回符合指定的識別類型和值的主體物件。 這個方法會由衍生類別 FindByIdentity 方法的實作來呼叫,以將搜尋限制為衍生類別類型,而且不適合從您的程式碼中直接呼叫。

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

principalType
Type

要為其傳回結果之物件的型別。 必須是型別 Principal 或衍生自 Principal 類別的型別。

identityValue
String

主體的身分識別。

傳回

符合指定的身分識別值和類型的 Principal 物件,如果找不到相符項目則為 null。

屬性

適用於