AuthenticablePrincipal 构造函数

定义

初始化 AuthenticablePrincipal 类的新实例。 此构造函数由派生类构造函数调用以初始化基类,不适合直接在代码中使用。

重载

AuthenticablePrincipal(PrincipalContext)

使用指定的上下文初始化 AuthenticablePrincipal 类的新实例。 此构造函数由派生类构造函数调用以初始化基类,不适合直接在代码中使用。

AuthenticablePrincipal(PrincipalContext, String, String, Boolean)

使用指定的上下文、SAM 帐户名、密码和启用的值初始化 AuthenticablePrincipal 类的新实例。 此构造函数由派生类构造函数调用以初始化基类,不适合直接在代码中使用。

注解

派生自此类的自定义扩展类可以从派生类构造函数调用此构造函数来初始化基类。 有关详细信息,请参阅 主体扩展 概述主题。

AuthenticablePrincipal(PrincipalContext)

Source:
AuthenticablePrincipal.cs
Source:
AuthenticablePrincipal.cs
Source:
AuthenticablePrincipal.cs

使用指定的上下文初始化 AuthenticablePrincipal 类的新实例。 此构造函数由派生类构造函数调用以初始化基类,不适合直接在代码中使用。

protected public:
 AuthenticablePrincipal(System::DirectoryServices::AccountManagement::PrincipalContext ^ context);
protected internal AuthenticablePrincipal (System.DirectoryServices.AccountManagement.PrincipalContext context);
new System.DirectoryServices.AccountManagement.AuthenticablePrincipal : System.DirectoryServices.AccountManagement.PrincipalContext -> System.DirectoryServices.AccountManagement.AuthenticablePrincipal
Protected Friend Sub New (context As PrincipalContext)

参数

context
PrincipalContext

PrincipalContext,用于指定要对其执行操作的服务器或域。

注解

派生自此类的自定义扩展类可以从派生类构造函数调用此构造函数来初始化基类。 有关详细信息,请参阅 主体扩展 概述主题。

适用于

AuthenticablePrincipal(PrincipalContext, String, String, Boolean)

Source:
AuthenticablePrincipal.cs
Source:
AuthenticablePrincipal.cs
Source:
AuthenticablePrincipal.cs

使用指定的上下文、SAM 帐户名、密码和启用的值初始化 AuthenticablePrincipal 类的新实例。 此构造函数由派生类构造函数调用以初始化基类,不适合直接在代码中使用。

protected public:
 AuthenticablePrincipal(System::DirectoryServices::AccountManagement::PrincipalContext ^ context, System::String ^ samAccountName, System::String ^ password, bool enabled);
protected internal AuthenticablePrincipal (System.DirectoryServices.AccountManagement.PrincipalContext context, string samAccountName, string password, bool enabled);
new System.DirectoryServices.AccountManagement.AuthenticablePrincipal : System.DirectoryServices.AccountManagement.PrincipalContext * string * string * bool -> System.DirectoryServices.AccountManagement.AuthenticablePrincipal
Protected Friend Sub New (context As PrincipalContext, samAccountName As String, password As String, enabled As Boolean)

参数

context
PrincipalContext

PrincipalContext,用于指定要对其执行操作的服务器或域。

samAccountName
String

此主体的 SAM 帐户名。

password
String

此帐户的密码。

enabled
Boolean

一个布尔值,指定是否启用帐户。

注解

派生自此类的自定义扩展类可以从派生类构造函数调用此构造函数来初始化基类。 有关详细信息,请参阅 主体扩展 概述主题。

适用于