IServerAuditFacet.C2AuditTracingEnabled Property

Gets or sets a value that indicates whether the C2 audit tracing is enabled.

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

Syntax

'Declaration
<DisplayDescriptionKeyAttribute("C2AuditTracingEnabledDesc")> _
<DisplayNameKeyAttribute("C2AuditTracingEnabledName")> _
<PostConfigurationActionAttribute(PostConfigurationAction.RestartService)> _
Property C2AuditTracingEnabled As Boolean 
    Get 
    Set
'Usage
Dim instance As IServerAuditFacet 
Dim value As Boolean 

value = instance.C2AuditTracingEnabled

instance.C2AuditTracingEnabled = value
[DisplayDescriptionKeyAttribute("C2AuditTracingEnabledDesc")]
[DisplayNameKeyAttribute("C2AuditTracingEnabledName")]
[PostConfigurationActionAttribute(PostConfigurationAction.RestartService)]
bool C2AuditTracingEnabled { get; set; }
[DisplayDescriptionKeyAttribute(L"C2AuditTracingEnabledDesc")]
[DisplayNameKeyAttribute(L"C2AuditTracingEnabledName")]
[PostConfigurationActionAttribute(PostConfigurationAction::RestartService)]
property bool C2AuditTracingEnabled {
    bool get ();
    void set (bool value);
}
[<DisplayDescriptionKeyAttribute("C2AuditTracingEnabledDesc")>]
[<DisplayNameKeyAttribute("C2AuditTracingEnabledName")>]
[<PostConfigurationActionAttribute(PostConfigurationAction.RestartService)>]
abstract C2AuditTracingEnabled : bool with get, set
function get C2AuditTracingEnabled () : boolean 
function set C2AuditTracingEnabled (value : boolean)

Property Value

Type: System.Boolean
true if the C2 audit tracing is enabled; 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