ServiceSecurityAuditBehavior.AuditLogLocation プロパティ

定義

セキュリティで保護された関連のイベント ログが書き込まれる場所を取得または設定します。

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

プロパティ値

AuditLogLocation。 既定値は Default です。

例外

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

次のコードでは、 ServiceSecurityAuditBehavior クラスのインスタンスを作成し、このプロパティを設定します。

// Create a new auditing behavior and set the log location.
ServiceSecurityAuditBehavior newAudit =
    new ServiceSecurityAuditBehavior();
newAudit.AuditLogLocation =
    AuditLogLocation.Application;
' Create a new auditing behavior and set the log location.
Dim newAudit As New ServiceSecurityAuditBehavior()
newAudit.AuditLogLocation = AuditLogLocation.Application

注釈

AuditLogLocation.Securityに書き込むには、実行中のスレッド (またはプロセス) にSeAuditPrivilegeが必要です。

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

適用対象