RawAcl.InsertAce(Int32, GenericAce) 方法

定義

在指定的索引插入指定的存取控制 Entry(ACE)。

public:
 void InsertAce(int index, System::Security::AccessControl::GenericAce ^ ace);
public void InsertAce(int index, System.Security.AccessControl.GenericAce ace);
member this.InsertAce : int * System.Security.AccessControl.GenericAce -> unit
Public Sub InsertAce (index As Integer, ace As GenericAce)

參數

index
Int32

新增ACE的位置。 指定 Count 屬性值,在物件末尾 RawAcl 插入 ACE。

ace
GenericAce

ACE 要插入。

備註

插入的 ACE 在插入前不會被複製,因此插入後對 ACE 的任何修改都會反映在 存取控制 List(ACL)。

適用於