ServiceSecurityAuditBehavior.ServiceAuthorizationAuditLevel プロパティ

定義

サービス レベルで監査する承認イベントの種類を取得または設定します。

public:
 property System::ServiceModel::AuditLevel ServiceAuthorizationAuditLevel { System::ServiceModel::AuditLevel get(); void set(System::ServiceModel::AuditLevel value); };
public System.ServiceModel.AuditLevel ServiceAuthorizationAuditLevel { get; set; }
member this.ServiceAuthorizationAuditLevel : System.ServiceModel.AuditLevel with get, set
Public Property ServiceAuthorizationAuditLevel As AuditLevel

プロパティ値

AuditLevel

AuditLevel 列挙値のいずれか。 既定値は、None です。

例外

set および valueAuditLevel の有効なメンバーではありません。 既定値は、None です。

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

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

適用対象