Share via


Propriété PasswordExpirationEnabled

Gets or sets the Boolean value that determines whether the login password will expire automatically.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
<DisplayDescriptionKeyAttribute("Login_PasswordExpirationEnabledDesc")> _
<DisplayNameKeyAttribute("Login_PasswordExpirationEnabledName")> _
Property PasswordExpirationEnabled As Boolean
    Get
    Set
'Utilisation
Dim instance As ILoginOptions
Dim value As Boolean

value = instance.PasswordExpirationEnabled

instance.PasswordExpirationEnabled = value
[DisplayDescriptionKeyAttribute("Login_PasswordExpirationEnabledDesc")]
[DisplayNameKeyAttribute("Login_PasswordExpirationEnabledName")]
bool PasswordExpirationEnabled { get; set; }
[DisplayDescriptionKeyAttribute(L"Login_PasswordExpirationEnabledDesc")]
[DisplayNameKeyAttribute(L"Login_PasswordExpirationEnabledName")]
property bool PasswordExpirationEnabled {
    bool get ();
    void set (bool value);
}
[<DisplayDescriptionKeyAttribute("Login_PasswordExpirationEnabledDesc")>]
[<DisplayNameKeyAttribute("Login_PasswordExpirationEnabledName")>]
abstract PasswordExpirationEnabled : bool with get, set
function get PasswordExpirationEnabled () : boolean
function set PasswordExpirationEnabled (value : boolean)

Valeur de propriété

Type : System. . :: . .Boolean
A Boolean value that determines whether the login password will expire automatically.
If True, the password will expire automatically. Otherwise, False.