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 列挙値のいずれか。 既定値は、None です。

例外

set および valueAuditLevel の有効なメンバーではありません。

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) サービス アプリケーションには、セキュリティを適用できる 2 つのレベルがあります。 サービス レベルでは、 サービス のすべてのメソッドが同じセキュリティ ポリシーによって適用されます。 サービス内のメソッドごとに異なる (より厳格な) セキュリティ ポリシーを適用することができます。 メッセージ レベルで監査するイベントの種類を制御する場合は、MessageAuthenticationAuditLevel プロパティを使用します。

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

適用対象