Int32Collection.CopyTo Method

Copies all of the Int32 values in a collection to a specified array.

Namespace: System.Windows.Media
Assembly: PresentationCore (in presentationcore.dll)

public void CopyTo (
	int[] array,
	int index
)
public final void CopyTo (
	int[] array, 
	int index
)
public final function CopyTo (
	array : int[], 
	index : int
)
You cannot use methods in XAML.

Parameters

array

Identifies the array to which content is copied.

index

Index position in the array to which the contents of the collection are copied.

Exception typeCondition

ArgumentOutOfRangeException

index is less than zero.

ArgumentException

array is multidimensional

- or -

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

- or -

The number of items in the source Int32Collection is greater than the available space from index to the end of the destination array.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Show: