AccessControlList.Insert(Int32, AccessControlEntry) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.