SemaphoreSecurity.RemoveAuditRuleSpecific(SemaphoreAuditRule) 方法
本文內容
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
搜尋與指定規則完全相符的稽核規則,如果找到的話,便加以移除。
public:
void RemoveAuditRuleSpecific(System::Security::AccessControl::SemaphoreAuditRule ^ rule);
public void RemoveAuditRuleSpecific(System.Security.AccessControl.SemaphoreAuditRule rule);
override this.RemoveAuditRuleSpecific : System.Security.AccessControl.SemaphoreAuditRule -> unit
Public Sub RemoveAuditRuleSpecific (rule As SemaphoreAuditRule)
- rule
- SemaphoreAuditRule
要移除的 SemaphoreAuditRule。
rule
為 null
。
只有在規則完全符合 rule
所有詳細數據時,才會移除規則,包括旗標。 相同使用者的其他稽核規則不會受到影響。
重要
規則代表一或多個基礎訪問控制專案 (ACE) ,當您修改使用者的稽核安全性規則時,這些項目會視需要分割或合併。 因此,當新增規則時,規則可能已不存在於特定形式中,在此情況下, RemoveAuditRuleSpecific 方法無法移除它。
適用於
產品 | 版本 |
---|---|
.NET | Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |