Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SqlParameterCollection.CopyTo Method (SqlParameter[], Int32)

Copies all the elements of the current SqlParameterCollection to the specified SqlParameterCollection starting at the specified destination index.

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

public void CopyTo(
	SqlParameter[] array,
	int index


Type: System.Data.SqlClient.SqlParameter[]

The SqlParameterCollection that is the destination of the elements copied from the current SqlParameterCollection.

Type: System.Int32

A 32-bit integer that represents the index in the SqlParameterCollection at which copying starts.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft