LoginAuditLevel 属性

Gets or sets a login audit level.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
<DisplayDescriptionKeyAttribute("LoginAuditLevelDesc")> _
<DisplayNameKeyAttribute("LoginAuditLevelName")> _
Property LoginAuditLevel As AuditLevel
    Get
    Set
用法
Dim instance As IServerAuditFacet
Dim value As AuditLevel

value = instance.LoginAuditLevel

instance.LoginAuditLevel = value
[DisplayDescriptionKeyAttribute("LoginAuditLevelDesc")]
[DisplayNameKeyAttribute("LoginAuditLevelName")]
AuditLevel LoginAuditLevel { get; set; }
[DisplayDescriptionKeyAttribute(L"LoginAuditLevelDesc")]
[DisplayNameKeyAttribute(L"LoginAuditLevelName")]
property AuditLevel LoginAuditLevel {
    AuditLevel get ();
    void set (AuditLevel value);
}
[<DisplayDescriptionKeyAttribute("LoginAuditLevelDesc")>]
[<DisplayNameKeyAttribute("LoginAuditLevelName")>]
abstract LoginAuditLevel : AuditLevel with get, set
function get LoginAuditLevel () : AuditLevel
function set LoginAuditLevel (value : AuditLevel)

注释

仅 Microsoft .NET Framework 的 2.0 版本支持此命名空间、类或成员。

Auditlevel is a [FlagsAttribute] enumeration that contains the following values:

Member Name

Description

All

Audits both successful and failed login attempts.

Failure

Audits failed login attempts.

None

Does not audit login attempts.

Success

Audits successful login attempts.