Modifica

Condividi tramite


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;
void ICollection.CopyTo (Array array, int index);
[System.Security.SecurityCritical]
void ICollection.CopyTo (Array array, int index);
abstract member System.Collections.ICollection.CopyTo : Array * int -> unit
override this.System.Collections.ICollection.CopyTo : Array * int -> unit
[<System.Security.SecurityCritical>]
abstract member System.Collections.ICollection.CopyTo : Array * int -> unit
override this.System.Collections.ICollection.CopyTo : Array * int -> unit
Sub CopyTo (array As Array, index As Integer) Implements ICollection.CopyTo

Parameters

array
Array

The 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