AccessControlList::Insert Method (Int32, AccessControlEntry^)

 

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.

Exception Condition
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
Available since 1.1
Return to top
Show: