Język

ServiceSecurityAuditBehavior.AuditLogLocation Właściwość

Definicja

Pobiera lub ustawia lokalizację zapisywania dzienników zdarzeń związanych z bezpiecznymi zabezpieczeniami.

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

Wartość właściwości

AuditLogLocation. Wartość domyślna to Default.

Wyjątki

set i value są nieprawidłowymi członkami programu AuditLogLocation.

Przykłady

Poniższy kod tworzy wystąpienie ServiceSecurityAuditBehavior klasy i ustawia tę właściwość.

// 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

Uwagi

Aby móc zapisywać w pliku AuditLogLocation.Security, uruchomiony wątek (lub proces) musi mieć wartość SeAuditPrivilege.

Tę wartość można również ustawić przy użyciu <elementu serviceSecurityAudit> w pliku konfiguracji aplikacji klienckiej.

Dotyczy