ILoginOptions.PasswordPolicyEnforced Property

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
<DisplayNameKeyAttribute("Login_PasswordPolicyEnforcedName")> _
<DisplayDescriptionKeyAttribute("Login_PasswordPolicyEnforcedDesc")> _
Property PasswordPolicyEnforced As Boolean 
    Get 
    Set
'Usage
Dim instance As ILoginOptions 
Dim value As Boolean 

value = instance.PasswordPolicyEnforced

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

Property Value

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

See Also

Reference

ILoginOptions Interface

Microsoft.SqlServer.Management.Smo Namespace