Share via


ComputerPrincipal.FindByIdentity Metoda

Definice

Vrátí objekt zabezpečení počítače, který odpovídá zadané hodnotě identity.

Přetížení

FindByIdentity(PrincipalContext, String)

Vrátí objekt zabezpečení počítače, který odpovídá zadané hodnotě identity.

FindByIdentity(PrincipalContext, IdentityType, String)

Vrátí objekt zabezpečení počítače, který odpovídá zadanému typu identity a hodnotě. Tato verze FindByIdentity metody určuje formát hodnoty identity.

FindByIdentity(PrincipalContext, String)

Zdroj:
Computer.cs
Zdroj:
Computer.cs
Zdroj:
Computer.cs

Vrátí objekt zabezpečení počítače, který odpovídá zadané hodnotě identity.

public:
 static System::DirectoryServices::AccountManagement::ComputerPrincipal ^ FindByIdentity(System::DirectoryServices::AccountManagement::PrincipalContext ^ context, System::String ^ identityValue);
public static System.DirectoryServices.AccountManagement.ComputerPrincipal FindByIdentity (System.DirectoryServices.AccountManagement.PrincipalContext context, string identityValue);
static member FindByIdentity : System.DirectoryServices.AccountManagement.PrincipalContext * string -> System.DirectoryServices.AccountManagement.ComputerPrincipal
Public Shared Function FindByIdentity (context As PrincipalContext, identityValue As String) As ComputerPrincipal

Parametry

context
PrincipalContext

Určuje PrincipalContext server nebo doménu, se kterou se operace provádějí.

identityValue
String

Identita počítače. Tento parametr může být libovolný formát, který je obsažen ve výčtu IdentityType .

Návraty

Objekt ComputerPrincipal , který odpovídá zadané hodnotě identity, nebo null, pokud nejsou nalezeny žádné shody.

Výjimky

Bylo nalezeno více objektů zabezpečení počítače odpovídajících aktuálnímu objektu počítače.

Platí pro

FindByIdentity(PrincipalContext, IdentityType, String)

Zdroj:
Computer.cs
Zdroj:
Computer.cs
Zdroj:
Computer.cs

Vrátí objekt zabezpečení počítače, který odpovídá zadanému typu identity a hodnotě. Tato verze FindByIdentity metody určuje formát hodnoty identity.

public:
 static System::DirectoryServices::AccountManagement::ComputerPrincipal ^ FindByIdentity(System::DirectoryServices::AccountManagement::PrincipalContext ^ context, System::DirectoryServices::AccountManagement::IdentityType identityType, System::String ^ identityValue);
public static System.DirectoryServices.AccountManagement.ComputerPrincipal FindByIdentity (System.DirectoryServices.AccountManagement.PrincipalContext context, System.DirectoryServices.AccountManagement.IdentityType identityType, string identityValue);
static member FindByIdentity : System.DirectoryServices.AccountManagement.PrincipalContext * System.DirectoryServices.AccountManagement.IdentityType * string -> System.DirectoryServices.AccountManagement.ComputerPrincipal
Public Shared Function FindByIdentity (context As PrincipalContext, identityType As IdentityType, identityValue As String) As ComputerPrincipal

Parametry

context
PrincipalContext

Určuje PrincipalContext server nebo doménu, se kterou se operace provádějí.

identityType
IdentityType

Hodnota IdentityType výčtu, která určuje formát parametru identityValue .

identityValue
String

Identita počítače. Tento parametr může být libovolný formát, který je obsažen ve výčtu IdentityType .

Návraty

Objekt ComputerPrincipal , který odpovídá zadané hodnotě a typu identity, nebo null, pokud nejsou nalezeny žádné shody.

Výjimky

Bylo nalezeno více objektů zabezpečení počítače odpovídajících aktuálnímu objektu počítače.

Hodnota identity není platná IdentityType hodnota výčtu.

Platí pro