ActiveDirectorySecurity.ModifyAccessRule 方法

定义

将指定修改应用到指定的 AccessRule

public:
 override bool ModifyAccessRule(System::Security::AccessControl::AccessControlModification modification, System::Security::AccessControl::AccessRule ^ rule, [Runtime::InteropServices::Out] bool % modified);
public override bool ModifyAccessRule (System.Security.AccessControl.AccessControlModification modification, System.Security.AccessControl.AccessRule rule, out bool modified);
override this.ModifyAccessRule : System.Security.AccessControl.AccessControlModification * System.Security.AccessControl.AccessRule * bool -> bool
Public Overrides Function ModifyAccessRule (modification As AccessControlModification, rule As AccessRule, ByRef modified As Boolean) As Boolean

参数

modification
AccessControlModification

要执行的访问控制类型。

rule
AccessRule

要修改的访问规则。

modified
Boolean

如果实际已修改,则为 true;否则为 false

返回

如果修改成功,则为 true;否则为 false

适用于