SemaphoreAuditRule(IdentityReference, SemaphoreRights, AuditFlags) コンストラクター

定義

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

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

パラメーター

identity
IdentityReference

ルールが適用されるユーザーまたはグループ。 SecurityIdentifier型、または型SecurityIdentifierに変換できるNTAccountなどの型である必要があります。

eventRights
SemaphoreRights

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

flags
AuditFlags

成功、失敗、またはその両方を監査するかどうかを指定する AuditFlags 値のビットごとの組み合わせ。

例外

eventRights は無効な値を指定します。

-または-

flags は無効な値を指定します。

identitynullです。

-または-

eventRights は 0 です。

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

注釈

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

適用対象