共用方式為


DirectoryObjectSecurity.ModifyAccess 方法

定義

將指定的修改套用至與這個 DirectoryObjectSecurity 物件關聯的判別存取控制清單 (DACL)。

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

參數

modification
AccessControlModification

要套用至 DACL 的修改。

rule
AccessRule

要修改的存取規則。

modified
Boolean

如果成功修改 DACL,則為 true,否則為 false

傳回

如果成功修改 DACL,則為 true,否則為 false

適用於