Jaa


CopyTo Method (Array, Int32)

Copies all the elements in the current instance to a compatible one-dimensional array, starting at the specified index of the target array.

Namespace:  Microsoft.CommerceServer.Marketing
Assembly:  Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)

Syntax

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

instance.CopyTo(array, index)
public void CopyTo(
    Array array,
    int index
)
public:
virtual void CopyTo(
    Array^ array, 
    int index
) sealed
public final function CopyTo(
    array : Array, 
    index : int
)

Parameters

  • array
    Type: System..::.Array
    The one-dimensional Array that is the destination of the elements copied from the current instance. The Array must have zero-based indexing and one-dimensional.
  • index
    Type: System..::.Int32
    The zero-based index in the destination array at which storing begins.

Implements

ICollection..::.CopyTo(Array, Int32)

Exceptions

Exception Condition
ArgumentNullException

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

ArgumentOutOfRangeException

index is less than zero.

ArgumentException

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

InvalidCastException

The type of the source ExpressionRefCollection cannot be cast automatically to the type of the destination array.

Remarks

The ExpressionRef elements are copied to the target array.

Permissions

See Also

Reference

ExpressionRefCollection Class

ExpressionRefCollection Members

CopyTo Overload

Microsoft.CommerceServer.Marketing Namespace