Jaa


CopyTo Method

Copies the contents of the ShippingDiscountCollection to a compatible one-dimensional array starting at the specified index of the target array.

Namespace:  Microsoft.CommerceServer.Runtime.Orders
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Sub CopyTo ( _
    array As ShippingDiscountRecord(), _
    index As Integer _
)
'Usage
Dim instance As ShippingDiscountCollection
Dim array As ShippingDiscountRecord()
Dim index As Integer

instance.CopyTo(array, index)
public void CopyTo(
    ShippingDiscountRecord[] array,
    int index
)
public:
void CopyTo(
    array<ShippingDiscountRecord^>^ array, 
    int index
)
public function CopyTo(
    array : ShippingDiscountRecord[], 
    index : int
)

Parameters

  • index
    Type: System..::.Int32
    The zero-based index in the destination array at which storing begins.

Exceptions

Exception Condition
ArgumentNullException

array is nullNothingnullptra null reference (Nothing in Visual Basic).

ArgumentOutOfRangeException

index is less than zero.

ArgumentException

array is multidimensional, index is equal to or greater than the length of array, or the number of elements in the source collection is greater than the available space from index to the end of the destination array.

Remarks

The ShippingDiscountCollection elements are copied to the target array, starting at the specified index of the target array.

Permissions

See Also

Reference

ShippingDiscountCollection Class

ShippingDiscountCollection Members

Microsoft.CommerceServer.Runtime.Orders Namespace