ActiveDirectorySecurity.RemoveAuditRule(ActiveDirectoryAuditRule) 方法

定义

从对象的系统访问控制列表 (SACL) 中移除包含安全标识符和访问掩码(其与指定审核规则中的相同)的所有审核规则。

public:
 bool RemoveAuditRule(System::DirectoryServices::ActiveDirectoryAuditRule ^ rule);
public bool RemoveAuditRule (System.DirectoryServices.ActiveDirectoryAuditRule rule);
override this.RemoveAuditRule : System.DirectoryServices.ActiveDirectoryAuditRule -> bool
Public Function RemoveAuditRule (rule As ActiveDirectoryAuditRule) As Boolean

参数

rule
ActiveDirectoryAuditRule

此操作应用于的 ActiveDirectoryAccessRule 对象。

返回

如果操作成功,则为 true;否则为 false

适用于