ServiceSecurityAuditBehavior.AuditLogLocation Propriedade
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
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.