ServiceSecurityAuditBehavior.AuditLogLocation Właściwość

Definicja

Pobiera lub ustawia lokalizację zapisywania dzienników zdarzeń związanych z 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

Element AuditLogLocation. Wartość domyślna to Default.

Wyjątki

seti value są nieprawidłowymi członkami .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 AuditLogLocation.Securitypliku , 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