Aracılığıyla paylaş


IServerAuditFacet.DefaultTraceEnabled Property

Indicates whether there is a default trace level set for a server.

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

Syntax

'Bildirim
<DisplayDescriptionKeyAttribute("DefaultTraceEnabledDesc")> _
<DisplayNameKeyAttribute("DefaultTraceEnabledName")> _
Property DefaultTraceEnabled As Boolean
    Get
    Set
'Kullanım
Dim instance As IServerAuditFacet
Dim value As Boolean

value = instance.DefaultTraceEnabled

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

Property Value

Type: System.Boolean
True if there is a default trace level set for a server; otherwise, false.

Remarks

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

See Also

Reference

IServerAuditFacet Interface

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

c2 audit mode Server Configuration Option

SQL Server Audit (Database Engine)