ObjectSecurity<T>.RemoveAccessRule(AccessRule<T>) 方法
定义
从与此 ObjectSecurity`1 对象关联的自由访问控制列表 (DACL) 中移除与指定的访问规则具有相同安全标识符和访问掩码的访问规则。Removes access rules that contain the same security identifier and access mask as the specified access rule from the Discretionary Access Control List (DACL) associated with this ObjectSecurity`1 object.
public:
virtual bool RemoveAccessRule(System::Security::AccessControl::AccessRule<T> ^ rule);
public virtual bool RemoveAccessRule (System.Security.AccessControl.AccessRule<T> rule);
override this.RemoveAccessRule : System.Security.AccessControl.AccessRule<'T (requires 'T : struct)> -> bool
Public Overridable Function RemoveAccessRule (rule As AccessRule(Of T)) As Boolean
参数
- rule
- AccessRule<T>
要移除的规则。The rule to remove.
返回
如果访问规则已成功移除,则为 true;否则为 false。true if the access rule was successfully removed; otherwise, false.