Share via


CryptoKeySecurity.RemoveAuditRule(CryptoKeyAuditRule) 方法

定義

從與這個 CryptoKeySecurity 物件相關聯的系統存取控制清單 (SACL),移除包含與指定稽核規則相同安全識別項和存取遮罩的稽核規則。

public:
 bool RemoveAuditRule(System::Security::AccessControl::CryptoKeyAuditRule ^ rule);
public bool RemoveAuditRule (System.Security.AccessControl.CryptoKeyAuditRule rule);
override this.RemoveAuditRule : System.Security.AccessControl.CryptoKeyAuditRule -> bool
Public Function RemoveAuditRule (rule As CryptoKeyAuditRule) As Boolean

參數

rule
CryptoKeyAuditRule

要移除的稽核規則。

傳回

如果成功移除稽核規則,則為 true,否則為 false

備註

除了移除稽核規則之外,還會使用可能會新增稽核控制規則的複雜演算法來完成稽核移除。

這個方法無法移除稽核規則,如果與稽核規則相關聯的繼承規則太複雜,移除演算法無法成功,就會傳回 false

適用於