DirectoryObjectSecurity.ResetAccessRule(ObjectAccessRule) 方法

定义

从与此 DirectoryObjectSecurity 对象关联的自由访问控制列表 (DACL) 中移除所有访问规则,然后添加指定的访问规则。

protected:
 void ResetAccessRule(System::Security::AccessControl::ObjectAccessRule ^ rule);
protected void ResetAccessRule (System.Security.AccessControl.ObjectAccessRule rule);
member this.ResetAccessRule : System.Security.AccessControl.ObjectAccessRule -> unit
Protected Sub ResetAccessRule (rule As ObjectAccessRule)

参数

rule
ObjectAccessRule

要重置的访问规则。

适用于