ComputerPrincipal.FindByIdentity Metoda

Definicja

Zwraca obiekt podmiotu zabezpieczeń komputera, który jest zgodny z określoną wartością tożsamości.

Przeciążenia

FindByIdentity(PrincipalContext, String)

Zwraca obiekt podmiotu zabezpieczeń komputera, który jest zgodny z określoną wartością tożsamości.

FindByIdentity(PrincipalContext, IdentityType, String)

Zwraca obiekt podmiotu zabezpieczeń komputera, który jest zgodny z określonym typem tożsamości i wartością. Ta wersja FindByIdentity metody określa format wartości tożsamości.

FindByIdentity(PrincipalContext, String)

Źródło:
Computer.cs
Źródło:
Computer.cs
Źródło:
Computer.cs

Zwraca obiekt podmiotu zabezpieczeń komputera, który jest zgodny z określoną wartością tożsamości.

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

Określa PrincipalContext serwer lub domenę, względem której są wykonywane operacje.

identityValue
String

Tożsamość komputera. Ten parametr może mieć dowolny format zawarty w wyliczenie IdentityType .

Zwraca

ComputerPrincipal Obiekt zgodny z określoną wartością tożsamości lub null, jeśli nie znaleziono dopasowań.

Wyjątki

Znaleziono wiele obiektów głównych komputera pasujących do bieżącego obiektu komputera.

Dotyczy

FindByIdentity(PrincipalContext, IdentityType, String)

Źródło:
Computer.cs
Źródło:
Computer.cs
Źródło:
Computer.cs

Zwraca obiekt podmiotu zabezpieczeń komputera, który jest zgodny z określonym typem tożsamości i wartością. Ta wersja FindByIdentity metody określa format wartości tożsamości.

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

Określa PrincipalContext serwer lub domenę, względem której są wykonywane operacje.

identityType
IdentityType

IdentityType Wartość wyliczenia określająca format parametruidentityValue.

identityValue
String

Tożsamość komputera. Ten parametr może mieć dowolny format zawarty w wyliczenie IdentityType .

Zwraca

ComputerPrincipal Obiekt zgodny z określoną wartością tożsamości i typem lub wartością null, jeśli nie znaleziono dopasowań.

Wyjątki

Znaleziono wiele obiektów głównych komputera pasujących do bieżącego obiektu komputera.

Wartość tożsamości nie jest prawidłową IdentityType wartością wyliczenia.

Dotyczy