MutexAuditRule(IdentityReference, MutexRights, AuditFlags) 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化該類別的新實例 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 數值,指定是否要審核成功、失敗或兩者兼有。
例外狀況
identity既不屬於類型SecurityIdentifier,也不是那種可以翻譯為類型 NTAccount的類型SecurityIdentifier。
備註
若要從代表使用者或群組名稱的字串建立NTAccount物件,請使用建構子。NTAccount.NTAccount(String)