PaymentGatewayLibrary

MerchantDefinedFieldsCollection.CopyTo Method 

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

[Visual Basic]
Public Sub CopyTo( _
   ByVal array As Array, _
   ByVal index As Integer _
)
[C#]
public void CopyTo(
   Array array,
   int index
);

Parameters

array
The one-dimensional array that is the destination of the elements copied from MerchantDefinedFieldsCollection. The array must have zero-based indexing.
index
The zero-based index in array at which copying begins.

Exceptions

Exception TypeCondition
ArgumentNullExceptionarray is a null reference (Nothing in Visual Basic).
ArgumentOutOfRangeExceptionindex is less than zero.
ArgumentExceptionarray is multidimensional.

-or-

index is equal or greater than length of array.

-or-

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

See Also

MerchantDefinedFieldsCollection Class | Duis.Payment Namespace