Share via


MutexAuditRule(IdentityReference, MutexRights, AuditFlags) コンストラクター

定義

監査するユーザーまたはグループ、監査する権限、成功、失敗、またはその両方のいずれを監査するかを指定して、MutexAuditRule クラスの新しいインスタンスを初期化します。

public:
 MutexAuditRule(System::Security::Principal::IdentityReference ^ identity, System::Security::AccessControl::MutexRights eventRights, System::Security::AccessControl::AuditFlags flags);
public MutexAuditRule (System.Security.Principal.IdentityReference identity, System.Security.AccessControl.MutexRights eventRights, System.Security.AccessControl.AuditFlags flags);
new System.Security.AccessControl.MutexAuditRule : System.Security.Principal.IdentityReference * System.Security.AccessControl.MutexRights * System.Security.AccessControl.AuditFlags -> System.Security.AccessControl.MutexAuditRule
Public Sub New (identity As IdentityReference, eventRights As MutexRights, flags As AuditFlags)

パラメーター

identity
IdentityReference

規則の適用対象となるユーザーまたはグループ。 SecurityIdentifier 型にするか、または NTAccount 型に変換できる SecurityIdentifier などの型にする必要があります。

eventRights
MutexRights

監査するアクセスの種類を指定する MutexRights 値のビットごとの組み合わせ。

flags
AuditFlags

成功、失敗、またはその両方のいずれを監査するかを示す AuditFlags 値のビットごとの組み合わせ。

例外

eventRights に無効な値が指定されています。

- または -

flags に無効な値が指定されています。

identitynullです。

- または -

eventRights が 0 です。

identitySecurityIdentifier 型ではなく、NTAccount 型に変換できる SecurityIdentifier などの型でもありません。

注釈

ユーザーまたはグループ名を NTAccount 表す文字列からオブジェクトを作成するには、 コンストラクターを NTAccount.NTAccount(String) 使用します。

適用対象