PasswordNeverExpires Property

AuthenticablePrincipal.PasswordNeverExpires Property

 

Gets or sets a Boolean value that specifies whether the password expires for this account.

Namespace:   System.DirectoryServices.AccountManagement
Assembly:  System.DirectoryServices.AccountManagement (in System.DirectoryServices.AccountManagement.dll)

public bool PasswordNeverExpires { get; set; }

Property Value

Type: System.Boolean

true if the password expires for this account; otherwise false.

Exception Condition
InvalidOperationException

The underlying store does not support this property.

.NET Framework
Available since 3.5

System.DirectoryServices.AccountManagement
AuthenticablePrincipal Class
System.DirectoryServices.AccountManagement Namespace Overview

Return to top
Show:
© 2016 Microsoft