Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

AccessControlList::CopyTo Method (array<AccessControlEntry^>^, Int32)

 

Copies the entire access control list to a compatible one-dimensional array of access control entries, starting at the specified index of the target array.

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

public:
void CopyTo(
	array<AccessControlEntry^>^ array,
	int index
)

Parameters

array
Type: array<System.Messaging::AccessControlEntry^>^

An array of type AccessControlEntry to which the access control list entries will be copied. The array must have zero-based indexing.

index
Type: System::Int32

The index in the array at which to begin copying the access control list entries.

Exception Condition
ArgumentNullException

The array parameter is null.

ArgumentOutOfRangeException

The index parameter is less than zero.

ArgumentException

The index parameter is greater than or equal to the length of the array parameter.

-or-

The number of elements in the source access control list is greater than the available space from index to the end of the destination array of access control entries.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft