ServiceSecurityAuditBehavior.AuditLogLocation Propriedade

Definição

Obtém ou define a localização onde os registos de eventos relacionados com o seguro são escritos.

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

Valor de Propriedade

O AuditLogLocation. O valor predefinido é Default.

Exceções

set e value não são membros válidos de AuditLogLocation.

Exemplos

O código seguinte cria uma instância da ServiceSecurityAuditBehavior classe e define esta propriedade.

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

Observações

Para poder escrever em AuditLogLocation.Security, o thread em execução (ou processo) deve possuir SeAuditPrivilege.

Também pode definir este valor usando o <serviceSecurityAudit> num ficheiro de configuração de uma aplicação cliente.

Aplica-se a