PrincipalCollection.ICollection.CopyTo(Array, Int32) Method

Definition

Copies the Principal objects from this PrincipalCollection into the specified array, starting at the specified position index in array.

 virtual void System.Collections.ICollection.CopyTo(Array ^ array, int index) = System::Collections::ICollection::CopyTo;
[System.Security.SecurityCritical]
void ICollection.CopyTo (Array array, int index);

Parameters

array
Array

The T:System.Array that should be populated with Principal objects.

index
Int32

The position in array to which the first Principal object should be copied to.

Implements

Attributes

Remarks

array must be one-dimensional. If it is not, an ArgumentException is thrown. Further exceptions are thrown if the number of elements to copy is greater than the available space from index to the end of array, if array is null, or if index is less than 0.

Applies to