語言

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 指定一個無效值。

identity 是 null。

-或-

eventRights 為零。

identity既不屬於類型SecurityIdentifier,也不是那種可以翻譯為類型 NTAccount的類型SecurityIdentifier。

備註

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

適用於