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

プロパティ値

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場合、監査に失敗すると例外がスローされ、ユーザー要求エラーが発生します。

この値は、クライアント アプリケーション構成ファイルの <serviceSecurityAudit> を使用して設定することもできます。

適用対象