ServiceSecurityAuditBehavior.MessageAuthenticationAuditLevel Propriedade

Definição

Obtém ou define o tipo de eventos de autenticação a serem auditados no nível da mensagem.Gets or sets the type of authentication events to audit at the message level.

public:
 property System::ServiceModel::AuditLevel MessageAuthenticationAuditLevel { System::ServiceModel::AuditLevel get(); void set(System::ServiceModel::AuditLevel value); };
public System.ServiceModel.AuditLevel MessageAuthenticationAuditLevel { get; set; }
member this.MessageAuthenticationAuditLevel : System.ServiceModel.AuditLevel with get, set
Public Property MessageAuthenticationAuditLevel As AuditLevel

Valor da propriedade

AuditLevel

Um dos valores de enumeração AuditLevel.One of the AuditLevel enumeration values. O padrão é None.The default is None.

Exceções

set e value não são membros válidos de AuditLevel.set and value are not valid members of AuditLevel.

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;
newAudit.MessageAuthenticationAuditLevel =
    AuditLevel.SuccessOrFailure;
newAudit.ServiceAuthorizationAuditLevel =
    AuditLevel.SuccessOrFailure;
newAudit.MessageAuthenticationAuditLevel = _
    AuditLevel.SuccessOrFailure
newAudit.ServiceAuthorizationAuditLevel = _
    AuditLevel.SuccessOrFailure

Comentários

Os aplicativos de serviço do Windows Communication Foundation (WCF) têm dois níveis em que a segurança pode ser imposta.Windows Communication Foundation (WCF) service applications have two levels where security can be enforced. No nível de serviço , todos os métodos do serviço são impostos pela mesma política de segurança.At the service level, all methods of the service are enforced by the same security policy. Métodos individuais no serviço podem ter uma política de segurança diferente (mais estrita).Individual methods in the service can have a different (more stringent) security policy. Use a MessageAuthenticationAuditLevel propriedade para controlar quais eventos de nível de mensagem são auditados.Use the MessageAuthenticationAuditLevel property to control which message level events are audited.

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.

Aplica-se a