Send feedback on this topic.
Teradata.Client.Provider
CopyTo(Array,Int32) Method



Teradata.Client.Provider Namespace > TdParameterCollection Class > CopyTo Method : CopyTo(Array,Int32) Method
The target one-dimensional array.
The zero-based index in the array where copying begins.
Copies the elements of TdParameterCollection to the specified array.
Syntax
'Declaration
 
Public Overloads Overrides NotOverridable Sub CopyTo( _
   ByVal array As Array, _
   ByVal index As Integer _
) 
'Usage
 
Dim instance As TdParameterCollection
Dim array As Array
Dim index As Integer
 
instance.CopyTo(array, index)
public override void CopyTo( 
   Array array,
   int index
)
public:
void CopyTo( 
   Array^ array,
   int index
) override 

Parameters

array
The target one-dimensional array.
index
The zero-based index in the array where copying begins.
Exceptions
ExceptionDescription
Can be thrown by one of the following errors: 1)array is not one-dimensional, 2)index is equal to or greater than the length of the array, or 3)the number of elements in the TdParameterCollection is greater than the available space from index to the end of the destination array.
array is null
index is less than zero.
The value parameter is not of type TdParameter.
Remarks
This is a shallow copy. The array elements will point to the same object (TdParameter objects in TdParameterCollection).
Requirements

Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019

See Also

Reference

TdParameterCollection Class
TdParameterCollection Members
Overload List
TdParameter Class