AuthenticablePrincipal 类 
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
封装可以对其进行身份验证的主体所通用的帐户和联系人数据。
public ref class AuthenticablePrincipal : System::DirectoryServices::AccountManagement::Principal[System.DirectoryServices.AccountManagement.DirectoryRdnPrefix("CN")]
public class AuthenticablePrincipal : System.DirectoryServices.AccountManagement.Principal[System.DirectoryServices.AccountManagement.DirectoryRdnPrefix("CN")]
[System.Security.SecurityCritical(System.Security.SecurityCriticalScope.Everything)]
public class AuthenticablePrincipal : System.DirectoryServices.AccountManagement.Principal[<System.DirectoryServices.AccountManagement.DirectoryRdnPrefix("CN")>]
type AuthenticablePrincipal = class
    inherit Principal[<System.DirectoryServices.AccountManagement.DirectoryRdnPrefix("CN")>]
[<System.Security.SecurityCritical(System.Security.SecurityCriticalScope.Everything)>]
type AuthenticablePrincipal = class
    inherit PrincipalPublic Class AuthenticablePrincipal
Inherits Principal- 继承
- 派生
- 属性
构造函数
| AuthenticablePrincipal(PrincipalContext) | 使用指定的上下文初始化 AuthenticablePrincipal 类的新实例。 此构造函数由派生类构造函数调用以初始化基类,不适合直接在代码中使用。 | 
| AuthenticablePrincipal(PrincipalContext, String, String, Boolean) | 使用指定的上下文、SAM 帐户名、密码和启用的值初始化 AuthenticablePrincipal 类的新实例。 此构造函数由派生类构造函数调用以初始化基类,不适合直接在代码中使用。 | 
属性
| AccountExpirationDate | 获取或设置一个可以为 null 的 DateTime,用于指定帐户过期的日期和时间。 | 
| AccountLockoutTime | 获取一个可以为 null 的 DateTime,用于指定帐户被锁定的日期和时间。 | 
| AdvancedSearchFilter | 返回一个 AdvancedFilters 对象,以便与 Query By Example 一起使用,以便在将 对象传递给 PrincipalSearcher之前设置只读属性。 | 
| AllowReversiblePasswordEncryption | 获取或设置一个布尔值,该值指定是否为此帐户启用可逆密码加密。 | 
| BadLogonCount | 获取对此帐户使用不正确的凭据进行登录的尝试次数。 | 
| Certificates | 获取包含此账户的 X509 证书的 X509Certificate2Collection。 | 
| Context | 获取与主体关联的主体上下文。(继承自 Principal) | 
| ContextRaw | 获取与此主体关联的主体上下文。(继承自 Principal) | 
| ContextType | 获取上下文类型枚举值,该值指定与此主体关联的主体上下文的类型。(继承自 Principal) | 
| DelegationPermitted | 获取或设置一个可以为 null 的布尔值,该值指定是否可以委托帐户。 | 
| Description | 获取或设置主体的说明。(继承自 Principal) | 
| DisplayName | 获取或设置此主体的显示名称。(继承自 Principal) | 
| DistinguishedName | 获取此主体的可分辨名称 (DN)。(继承自 Principal) | 
| Enabled | 获取或设置一个可以为 null 的布尔值,该值指定是否支持此帐户进行身份验证。 | 
| Guid | 获取与此主体关联的 GUID。(继承自 Principal) | 
| HomeDirectory | 获取或设置此帐户的主目录。 | 
| HomeDrive | 获取或设置此帐户的主驱动器。 | 
| LastBadPasswordAttempt | 获取一个可以为 null 的 DateTime,用于指定最后一次对此帐户进行不正确的密码尝试的日期和时间。 | 
| LastLogon | 获取一个可以为 null 的 DateTime,用于指定最后一次登录此帐户的日期和时间。 | 
| LastPasswordSet | 获取一个可以为 null 的 DateTime,用于指定最后一次为此帐户设置密码的日期和时间。 | 
| Name | 获取或设置此主体的名称。(继承自 Principal) | 
| PasswordNeverExpires | 获取或设置一个布尔值,该值指定此帐户的密码是否会过期。 | 
| PasswordNotRequired | 获取或设置一个布尔值,该值指定此帐户是否需要密码。 | 
| PermittedLogonTimes | 获取或设置主体可以登录的次数。 | 
| PermittedWorkstations | 获取允许此主体登录的工作站的列表。 | 
| SamAccountName | 获取或设置此主体的 SAM 帐户名。(继承自 Principal) | 
| ScriptPath | 获取或设置此帐户的脚本路径。 | 
| Sid | 获取主体的安全 ID (SID)。(继承自 Principal) | 
| SmartcardLogonRequired | 获取或设置一个布尔值,该值指定登录帐户是否需要智能卡。 | 
| StructuralObjectClass | 获取结构对象类目录特性。(继承自 Principal) | 
| UserCannotChangePassword | 获取或设置一个布尔值,指定用户是否可以更改此帐户的密码。 请勿将其与 ComputerPrincipal 一起使用。 | 
| UserPrincipalName | 获取或设置与此主体关联的用户主体名称 (UPN)。(继承自 Principal) |