言語

ComputerPrincipal コンストラクター

定義

ComputerPrincipal クラスの新しいインスタンスを初期化します。 context プロパティは、 Save()を呼び出す前にオブジェクトに設定する必要があります。

オーバーロード

名前 説明
ComputerPrincipal(PrincipalContext)

ComputerPrincipal クラスの新しいインスタンスを初期化し、指定したコンテキストに割り当てます。

ComputerPrincipal(PrincipalContext, String, String, Boolean)

指定したコンテキスト、SAM アカウント名、パスワード、および有効な値を使用して、ComputerPrincipal クラスの新しいインスタンスを初期化します。

注釈

コンピューター プリンシパル アカウントは、作成時に保持されません。 アカウントを永続化するには、 Save メソッドを呼び出します。

ComputerPrincipal(PrincipalContext)

ソース:
Computer.cs
ソース:
Computer.cs
ソース:
Computer.cs
ソース:
Computer.cs

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)

ソース:
Computer.cs
ソース:
Computer.cs
ソース:
Computer.cs
ソース:
Computer.cs

指定したコンテキスト、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 メソッドを呼び出します。

適用対象