共用方式為


Login.PasswordPolicyEnforced 屬性

Gets the Boolean property value that specifies whether password policy is enforced for this login account.

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

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase,  _
    "false")> _
Public Property PasswordPolicyEnforced As Boolean 
    Get 
    Set
'用途
Dim instance As Login 
Dim value As Boolean 

value = instance.PasswordPolicyEnforced

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

屬性值

型別:System.Boolean
A Boolean value that specifies whether password policy is enforced for this login account.If True, password policy is enforced for this login account.If False (default), password policy is not enforced for this login account.

實作

ILoginOptions.PasswordPolicyEnforced

範例

管理使用者、角色和登入

請參閱

參考

Login 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

主體 (Database Engine)

CREATE LOGIN (Transact-SQL)