Freigeben über


IServerAuditFacet.LoginAuditLevel-Eigenschaft

Gets or sets a login audit level.

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

Syntax

'Declaration
<DisplayNameKeyAttribute("LoginAuditLevelName")> _
<DisplayDescriptionKeyAttribute("LoginAuditLevelDesc")> _
Property LoginAuditLevel As AuditLevel 
    Get 
    Set
'Usage
Dim instance As IServerAuditFacet 
Dim value As AuditLevel 

value = instance.LoginAuditLevel

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

Eigenschaftswert

Typ: Microsoft.SqlServer.Management.Smo.AuditLevel
A login audit level.

Hinweise

Der Namespace, die Klasse oder das Element wird nur in der Version 2.0 von Microsoft .NET Framework unterstützt.

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.

Siehe auch

Verweis

IServerAuditFacet Schnittstelle

Microsoft.SqlServer.Management.Smo-Namespace

Andere Ressourcen

C2-Überwachungsmodus (Serverkonfigurationsoption)

SQL Server Audit (Datenbankmodul)