ServiceSecurityAuditBehavior.AuditLogLocation Eigenschap

Definitie

Hiermee haalt u de locatie op waar beveiligde gebeurtenislogboeken worden geschreven.

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

Waarde van eigenschap

De AuditLogLocation. De standaardwaarde is Default.

Uitzonderingen

set en value zijn geen geldige leden van AuditLogLocation.

Voorbeelden

Met de volgende code maakt u een exemplaar van de ServiceSecurityAuditBehavior klasse en stelt u deze eigenschap in.

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

Opmerkingen

Als u wilt kunnen schrijven naar AuditLogLocation.Security, moet de actieve thread (of het proces) bezit SeAuditPrivilege.

U kunt deze waarde ook instellen met behulp van de< serviceSecurityAudit> in een clienttoepassingsconfiguratiebestand.

Van toepassing op