ComputerPrincipal.FindByIdentity 메서드

정의

지정된 ID 값과 일치하는 컴퓨터 보안 주체 개체를 반환합니다.

오버로드

Name Description
FindByIdentity(PrincipalContext, String)

지정된 ID 값과 일치하는 컴퓨터 보안 주체 개체를 반환합니다.

FindByIdentity(PrincipalContext, IdentityType, String)

지정된 ID 형식 및 값과 일치하는 컴퓨터 보안 주체 개체를 반환합니다. 이 버전의 메서드는 FindByIdentity ID 값의 형식을 결정합니다.

FindByIdentity(PrincipalContext, String)

Source:
Computer.cs
Source:
Computer.cs
Source:
Computer.cs
Source:
Computer.cs

지정된 ID 값과 일치하는 컴퓨터 보안 주체 개체를 반환합니다.

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

매개 변수

context
PrincipalContext

작업이 수행되는 서버 또는 도메인을 지정하는 PrincipalContext.

identityValue
String

컴퓨터의 ID입니다. 이 매개 변수는 열거형에 포함된 모든 형식일 IdentityType 수 있습니다.

반품

ComputerPrincipal 지정된 ID 값과 일치하는 개체이거나 일치하는 항목이 없으면 null입니다.

예외

현재 컴퓨터 개체와 일치하는 여러 컴퓨터 보안 주체 개체가 발견되었습니다.

적용 대상

FindByIdentity(PrincipalContext, IdentityType, String)

Source:
Computer.cs
Source:
Computer.cs
Source:
Computer.cs
Source:
Computer.cs

지정된 ID 형식 및 값과 일치하는 컴퓨터 보안 주체 개체를 반환합니다. 이 버전의 메서드는 FindByIdentity ID 값의 형식을 결정합니다.

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

매개 변수

context
PrincipalContext

작업이 수행되는 서버 또는 도메인을 지정하는 PrincipalContext.

identityType
IdentityType

IdentityType 매개 변수의 형식을 지정하는 열거형 값입니다identityValue.

identityValue
String

컴퓨터의 ID입니다. 이 매개 변수는 열거형에 포함된 모든 형식일 IdentityType 수 있습니다.

반품

ComputerPrincipal 지정된 ID 값 및 형식과 일치하는 개체이거나, 일치하는 항목이 없으면 null입니다.

예외

현재 컴퓨터 개체와 일치하는 여러 컴퓨터 보안 주체 개체가 발견되었습니다.

ID 값이 유효한 IdentityType 열거형 값이 아닙니다.

적용 대상