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,或是像是可以轉換成型別 NTAccountSecurityIdentifier 的型別。

eventRights
MutexRights

MutexRights 值的位元組合,指定要稽核的存取類型。

flags
AuditFlags

AuditFlags 值的位元組合,指定是否要稽核成功、失敗或兩者皆稽核。

例外狀況

eventRights 指定了無效的值。

-或- flags 指定了無效的值。

identitynull

-或- eventRights 為零。

identity 既不是 SecurityIdentifier 型別,也不是可以轉譯成 NTAccount 型別的 SecurityIdentifier 型別。

備註

若要從代表使用者或組名的字串建立 NTAccount 物件,請使用 建 NTAccount.NTAccount(String) 構函式。

適用於