ServiceSecurityAuditBehavior.MessageAuthenticationAuditLevel 속성

정의

메시지 수준에서 감사할 인증 이벤트의 형식을 가져오거나 설정합니다.

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

속성 값

AuditLevel

AuditLevel 열거형 값 중 하나입니다. 기본값은 None입니다.

예외

setvalueAuditLevel의 유효한 멤버가 아닌 경우

예제

다음 코드에서는 ServiceSecurityAuditBehavior 클래스의 인스턴스를 만들고 이 속성을 설정합니다.

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

설명

Windows Communication Foundation (WCF) 서비스 애플리케이션에는 두 수준 보안을 적용할 수 있습니다. 에 서비스 수준에서 서비스의 모든 메서드에 동일한 보안 정책에 의해 적용 됩니다. 서비스의 개별 메서드는 서로 다르며 보다 엄격한 보안 정책을 사용할 수 있습니다. 감사하는 메시지 수준 이벤트를 제어하려면 MessageAuthenticationAuditLevel 속성을 사용합니다.

클라이언트 애플리케이션 구성 파일에서 <serviceSecurityAudit> 를 사용하여 이 값을 설정할 수도 있습니다.

적용 대상