Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ServiceSecurityAuditBehavior.AuditLogLocation Property

Gets or sets the location where secure-related event logs are written.

Namespace: System.ServiceModel.Description
Assembly: System.ServiceModel (in system.servicemodel.dll)

public AuditLogLocation AuditLogLocation { get; set; }
/** @property */
public AuditLogLocation get_AuditLogLocation ()

/** @property */
public void set_AuditLogLocation (AuditLogLocation value)

public function get AuditLogLocation () : AuditLogLocation

public function set AuditLogLocation (value : AuditLogLocation)

Not applicable.

Property Value

The AuditLogLocation. The default value is Default.
Exception typeCondition

ArgumentOutOfRangeException

set and value are not valid members of AuditLogLocation.

To be able to write to AuditLogLocation.Security, the running thread (or process) must possess SeAuditPrivilege.

The following code creates an instance of the ServiceSecurityAuditBehavior class and sets this property.

// Create a new auditing behavior and set the log location.
ServiceSecurityAuditBehavior newAudit = 
    new ServiceSecurityAuditBehavior();
newAudit.AuditLogLocation = 
    AuditLogLocation.Application;

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.