Compartilhar via


Propriedade do RDL Login.PasswordExpirationEnabled

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

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase,  _
    "false")> _
Public Property PasswordExpirationEnabled As Boolean 
    Get 
    Set
'Uso
Dim instance As Login 
Dim value As Boolean 

value = instance.PasswordExpirationEnabled

instance.PasswordExpirationEnabled = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase, 
    "false")]
public bool PasswordExpirationEnabled { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase, 
    L"false")]
public:
virtual property bool PasswordExpirationEnabled {
    bool get () sealed;
    void set (bool value) sealed;
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase, 
    "false")>]
abstract PasswordExpirationEnabled : bool with get, set
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase, 
    "false")>]
override PasswordExpirationEnabled : bool with get, set
final function get PasswordExpirationEnabled () : boolean 
final function set PasswordExpirationEnabled (value : boolean)

Valor da propriedade

Tipo: 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.

Implementa

ILoginOptions.PasswordExpirationEnabled

Exemplos

Gerenciando usuários, funções e logons

Consulte também

Referência

Login Classe

Namespace Microsoft.SqlServer.Management.Smo

Outros recursos

Entidades (Mecanismo de Banco de Dados)

CREATE LOGIN (Transact-SQL)