共用方式為


ILoginOptions.PasswordPolicyEnforced 屬性

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

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

語法

'宣告
<DisplayNameKeyAttribute("Login_PasswordPolicyEnforcedName")> _
<DisplayDescriptionKeyAttribute("Login_PasswordPolicyEnforcedDesc")> _
Property PasswordPolicyEnforced As Boolean 
    Get 
    Set
'用途
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)

屬性值

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

請參閱

參考

ILoginOptions 介面

Microsoft.SqlServer.Management.Smo 命名空間