Export (0) Print
Expand All

AccessControlList.Insert Method

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

Namespace:  System.Messaging
Assembly:  System.Messaging (in System.Messaging.dll)

public void Insert(
	int index,
	AccessControlEntry entry
)

Parameters

index
Type: System.Int32

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

entry
Type: System.Messaging.AccessControlEntry

A AccessControlEntry to insert into the access control list.

ExceptionCondition
ArgumentOutOfRangeException

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

ArgumentNullException

The entry parameter is null.

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft