共用方式為


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

適用於