ObjectSecurity<T>.SetAccessRule(AccessRule<T>) 方法
定义
从与此 ObjectSecurity`1 对象关联的自由访问控制列表 (DACL) 中移除与指定的访问规则具有相同安全标识符和限定符的所有访问规则,然后添加指定的访问规则。Removes all access rules that contain the same security identifier and qualifier as the specified access rule in the Discretionary Access Control List (DACL) associated with this ObjectSecurity`1 object and then adds the specified access rule.
public:
virtual void SetAccessRule(System::Security::AccessControl::AccessRule<T> ^ rule);
public virtual void SetAccessRule (System.Security.AccessControl.AccessRule<T> rule);
override this.SetAccessRule : System.Security.AccessControl.AccessRule<'T (requires 'T : struct)> -> unit
Public Overridable Sub SetAccessRule (rule As AccessRule(Of T))
参数
- rule
- AccessRule<T>
要设置的访问规则。The access rule to set.