Edit

Share via


AccessControlList.Insert(Int32, AccessControlEntry) Method

Definition

Inserts an access control entry into the access control list at the specified position.

public:
 void Insert(int index, System::Messaging::AccessControlEntry ^ entry);
public void Insert (int index, System.Messaging.AccessControlEntry entry);
member this.Insert : int * System.Messaging.AccessControlEntry -> unit
Public Sub Insert (index As Integer, entry As AccessControlEntry)

Parameters

index
Int32

The zero-based index at which the access control entry should be inserted.

entry
AccessControlEntry

A AccessControlEntry to insert into the access control list.

Exceptions

The index parameter is not a valid index in this access control list.

The entry parameter is null.

Remarks

If the index parameter equals the number of items in the access control list, then the entry is appended to the end. Otherwise, the entries after the insertion point move down to accommodate the new item in the list.

Applies to

See also