ReportParameterCollection.CopyTo ReportParameterCollection.CopyTo ReportParameterCollection.CopyTo Method

Definition

Copies the entire collection to a specified Array or ReportParameterCollection.

Overloads

CopyTo(ReportParameterCollection) CopyTo(ReportParameterCollection) CopyTo(ReportParameterCollection)

Copies the entire collection to the end of a ReportParameterCollection.

CopyTo(Array, Int32) CopyTo(Array, Int32)

Copies the entire collection to a compatible one-dimensional Array, starting at the specified index of the target array.

CopyTo(ReportParameterCollection) CopyTo(ReportParameterCollection) CopyTo(ReportParameterCollection)

Copies the entire collection to the end of a ReportParameterCollection.

public:
 void CopyTo(Microsoft::AnalysisServices::ReportParameterCollection ^ col);
public void CopyTo (Microsoft.AnalysisServices.ReportParameterCollection col);
Public Sub CopyTo (col As ReportParameterCollection)
Parameters
Exceptions

CopyTo(Array, Int32) CopyTo(Array, Int32)

Copies the entire collection to a compatible one-dimensional Array, starting at the specified index of the target array.

public:
 virtual void CopyTo(Array ^ array, int index);
public void CopyTo (Array array, int index);
Parameters
array
Array Array Array

The one-dimensional Array into which to copy the elements of the collection.

index
Int32 Int32 Int32

The zero-based index in array at which copying begins.

Exceptions

array is a null reference (Nothing in Visual Basic).

array is multidimensional.

-or-

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

-or-

The number of elements in the collection is greater than the available space from index to the end of the array.

The type of the collection cannot be cast automatically to the type of the array.

Applies to