共用方式為


PasswordExpirationEnabled 屬性

Gets the Boolean property value that specifies whether the password for the login account will automatically expire.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcPropertyAttribute> _
Public Property PasswordExpirationEnabled As Boolean
    Get
    Set
'用途
Dim instance As Login
Dim value As Boolean

value = instance.PasswordExpirationEnabled

instance.PasswordExpirationEnabled = value
[SfcPropertyAttribute]
public bool PasswordExpirationEnabled { get; set; }
[SfcPropertyAttribute]
public:
virtual property bool PasswordExpirationEnabled {
    bool get () sealed;
    void set (bool value) sealed;
}
[<SfcPropertyAttribute>]
abstract PasswordExpirationEnabled : bool with get, set
[<SfcPropertyAttribute>]
override PasswordExpirationEnabled : bool with get, set
final function get PasswordExpirationEnabled () : boolean
final function set PasswordExpirationEnabled (value : boolean)

屬性值

型別:System. . :: . .Boolean
A Boolean value that specifies whether the password for the login account will automatically expire.
If True, the login account password automatically expires.
If False (default), the login account password does not expire automatically.

實作

ILoginOptions. . :: . .PasswordExpirationEnabled