Muokkaa

Jaa


AccessControlList.CopyTo(AccessControlEntry[], Int32) Method

Definition

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.

public:
 void CopyTo(cli::array <System::Messaging::AccessControlEntry ^> ^ array, int index);
public void CopyTo (System.Messaging.AccessControlEntry[] array, int index);
member this.CopyTo : System.Messaging.AccessControlEntry[] * int -> unit
Public Sub CopyTo (array As AccessControlEntry(), index As Integer)

Parameters

array
AccessControlEntry[]

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

index
Int32

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

Exceptions

The array parameter is null.

The index parameter is less than zero.

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.

Applies to

See also