ComputerPrincipal 생성자

정의

ComputerPrincipal 클래스의 새 인스턴스를 초기화합니다. 호출하기 Save()전에 개체에 Context 속성을 설정해야 합니다.

오버로드

Name Description
ComputerPrincipal(PrincipalContext)

클래스의 새 인스턴스를 ComputerPrincipal 초기화하고 지정된 컨텍스트에 할당합니다.

ComputerPrincipal(PrincipalContext, String, String, Boolean)

지정된 컨텍스트, SAM 계정 이름, 암호 및 사용 값을 사용하여 ComputerPrincipal 클래스의 새 인스턴스를 초기화합니다.

설명

컴퓨터 보안 주체 계정은 생성될 때 유지되지 않습니다. 계정을 유지하려면 메서드를 호출합니다 Save .

ComputerPrincipal(PrincipalContext)

클래스의 새 인스턴스를 ComputerPrincipal 초기화하고 지정된 컨텍스트에 할당합니다.

public:
 ComputerPrincipal(System::DirectoryServices::AccountManagement::PrincipalContext ^ context);
public ComputerPrincipal(System.DirectoryServices.AccountManagement.PrincipalContext context);
new System.DirectoryServices.AccountManagement.ComputerPrincipal : System.DirectoryServices.AccountManagement.PrincipalContext -> System.DirectoryServices.AccountManagement.ComputerPrincipal
Public Sub New (context As PrincipalContext)

매개 변수

context
PrincipalContext

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

설명

컴퓨터 보안 주체 계정은 생성될 때 유지되지 않습니다. 계정을 저장하려면 메서드를 호출합니다 Save .

적용 대상

ComputerPrincipal(PrincipalContext, String, String, Boolean)

지정된 컨텍스트, SAM 계정 이름, 암호 및 사용 값을 사용하여 ComputerPrincipal 클래스의 새 인스턴스를 초기화합니다.

public:
 ComputerPrincipal(System::DirectoryServices::AccountManagement::PrincipalContext ^ context, System::String ^ samAccountName, System::String ^ password, bool enabled);
public ComputerPrincipal(System.DirectoryServices.AccountManagement.PrincipalContext context, string samAccountName, string password, bool enabled);
new System.DirectoryServices.AccountManagement.ComputerPrincipal : System.DirectoryServices.AccountManagement.PrincipalContext * string * string * bool -> System.DirectoryServices.AccountManagement.ComputerPrincipal
Public Sub New (context As PrincipalContext, samAccountName As String, password As String, enabled As Boolean)

매개 변수

context
PrincipalContext

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

samAccountName
String

이 컴퓨터 보안 주체의 SAM 계정 이름입니다.

password
String

이 계정의 암호입니다.

enabled
Boolean

계정을 사용할 수 있는지 여부를 지정하는 부울 값입니다.

설명

컴퓨터 보안 주체 계정은 생성될 때 유지되지 않습니다. 계정을 유지하려면 메서드를 호출합니다 Save .

적용 대상