Freigeben über


PasswordPolicyEnforced-Eigenschaft

Gets or sets the Boolean value that determines whether the login password must adhere to a policy.

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

Syntax

'Declaration
<DisplayDescriptionKeyAttribute("Login_PasswordPolicyEnforcedDesc")> _
<DisplayNameKeyAttribute("Login_PasswordPolicyEnforcedName")> _
Property PasswordPolicyEnforced As Boolean
    Get
    Set
'Usage
Dim instance As ILoginOptions
Dim value As Boolean

value = instance.PasswordPolicyEnforced

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

Eigenschaftswert

Typ: System. . :: . .Boolean
A Boolean value that determines whether password policy is enforced.
If True, the password policy is enforced. Otherwise, False.