Windows apps
Collapse the table of content
Expand the table of content

Vector<T>::CopyTo Method (array<T>, Int32)

Copies the vector instance to a specified destination array starting at a specified index position.

Namespace:  System.Numerics
Assembly:  System.Numerics.Vectors (in System.Numerics.Vectors.dll)

public:
void CopyTo(
	array<T>^ destination, 
	int startIndex
)

Parameters

destination
Type: array<T>

The array to receive a copy of the vector values.

startIndex
Type: System::Int32

The starting index in destination at which to begin the copy operation.

ExceptionCondition
ArgumentNullException

destination is nullptr.

ArgumentException

The number of elements in the current instance is greater than the number of elements available from startIndex to the end of the destination array.

ArgumentOutOfRangeException

index is less than zero or greater than the last index in destination.

The copy operation begins at index startIndex of destination. The destination array must have at least startIndex + Count – 1 elements.

Show:
© 2017 Microsoft