ServiceSecurityAuditBehavior.SuppressAuditFailure プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
監査の失敗がアプリケーションに影響するかどうかを示す値を取得または設定します。
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> を使用して設定することもできます。