ServiceSecurityAuditBehavior.AuditLogLocation Eigenschaft

Definition

Dient zum Abrufen oder Festlegen des Speicherorts, an dem sichere Ereignisprotokolle geschrieben werden.

public:
 property System::ServiceModel::AuditLogLocation AuditLogLocation { System::ServiceModel::AuditLogLocation get(); void set(System::ServiceModel::AuditLogLocation value); };
public System.ServiceModel.AuditLogLocation AuditLogLocation { get; set; }
member this.AuditLogLocation : System.ServiceModel.AuditLogLocation with get, set
Public Property AuditLogLocation As AuditLogLocation

Eigenschaftswert

Die AuditLogLocation. Der Standardwert ist Default.

Ausnahmen

set und value sind keine gültigen Member von AuditLogLocation.

Beispiele

Der folgende Code erstellt eine Instanz der ServiceSecurityAuditBehavior Klasse und legt diese Eigenschaft fest.

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

Hinweise

Um schreiben AuditLogLocation.Securityzu können, muss der ausgeführte Thread (oder Prozess) besitzen SeAuditPrivilege.

Sie können diesen Wert auch mithilfe des <serviceSecurityAudit> in einer Clientanwendungskonfigurationsdatei festlegen.

Gilt für: