ServiceSecurityAuditBehavior.SuppressAuditFailure 속성

정의

감사 실패가 애플리케이션에 영향을 주는지 여부를 나타내는 값을 가져오거나 설정합니다.

public:
 property bool SuppressAuditFailure { bool get(); void set(bool value); };
public bool SuppressAuditFailure { get; set; }
member this.SuppressAuditFailure : bool with get, set
Public Property SuppressAuditFailure As Boolean

속성 값

Boolean

감사 실패가 애플리케이션에 영향을 주지 않으면 true이고, 영향을 주면 false입니다. 기본값은 true입니다.

예제

다음 코드에서는 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.SuppressAuditFailure = false;
newAudit.SuppressAuditFailure = False

설명

이 속성이 false인 경우, 감사가 실패하면 예외가 throw되고 사용자 요청이 실패합니다.

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

적용 대상