SqlErrorCollection::CopyTo Method (Array^, Int32)

 

Copies the elements of the SqlErrorCollection collection into an Array, starting at the specified index.

Namespace:   System.Data.SqlClient
Assembly:  System.Data (in System.Data.dll)

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

Parameters

array
Type: System::Array^

The Array to copy elements into.

index
Type: System::Int32

The index from which to start copying into the array parameter.

Exception Condition
ArgumentException

The sum of index and the number of elements in the SqlErrorCollection collection is greater than the Length of the Array.

ArgumentNullException

The array is null.

ArgumentOutOfRangeException

The index is not valid for array.

.NET Framework
Available since 1.1
Return to top
Show: