.NET Framework (current version)
Gets or sets the location where secure-related event logs are written.
System.ServiceModel (in System.ServiceModel.dll)
Public Property AuditLogLocation As AuditLogLocation
To be able to write to AuditLogLocation.Security, the running thread (or process) must possess SeAuditPrivilege.
You can also set this value using the <serviceSecurityAudit> in a client application configuration file.
The following code creates an instance of the ServiceSecurityAuditBehavior class and sets this property.
' Create a new auditing behavior and set the log location.
Dim newAudit As New ServiceSecurityAuditBehavior()
newAudit.AuditLogLocation = AuditLogLocation.Application
Return to top
Available since 3.0