ServiceSecurityAuditBehavior.AuditLogLocation Propriedade
Definição
Obtém ou define o local em que os logs de eventos relacionados à segurança são gravados.Gets or sets the location where secure-related event logs are written.
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 da propriedade
O AuditLogLocation.The AuditLogLocation. O valor padrão é Default.The default value is Default.
Exceções
set e value não são membros válidos de AuditLogLocation.set and value are not valid members of AuditLogLocation.
Exemplos
O código a seguir cria uma instância da ServiceSecurityAuditBehavior classe e define essa propriedade.The following code creates an instance of the ServiceSecurityAuditBehavior class and sets this property.
// 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
Comentários
Para poder gravar no AuditLogLocation.Security , o thread (ou processo) em execução deve ter SeAuditPrivilege .To be able to write to AuditLogLocation.Security, the running thread (or process) must possess SeAuditPrivilege.
Você também pode definir esse valor usando o < serviceSecurityAudit > em um arquivo de configuração de aplicativo cliente.You can also set this value using the <serviceSecurityAudit> in a client application configuration file.