CopyTo(Array, int) Method

Syntax:

public void CopyTo(Array array, int index)

Description:

Copies an array of items to the collection starting at the specified index

Parameters:

array

Type: System.Array

The array of items to copy to the collection.

index

Type: System.Int32

The index in the collection at which to copy the items.

Exceptions:

Exception Condition
ArgumentNullException The specified array is null.
ArgumentOutOfRangeException The index is out of range for the collection.

Reference:

For more information, reference MSDN documentation for: System.Data.Common.DbParameterCollection.CopyTo