Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
HashDictionary..::.CopyTo Method
HashDictionary Class See Also Send Feedback

Oracle® Coherence .NET API Reference Release 3.6
E15727-01
Copies the elements of the collection to an array, starting at a particular array index.

Namespace: Tangosol.Util.Collections
Assembly: Coherence (in Coherence.dll) Version: 3.6.0.0 (3.6.0.0)

# Syntax

C#
    public override void CopyTo(
    	Array array,
    	int index
    )

#### Parameters

array
  Type: System..::.Array
  The one-dimensional array that is the destination of the elements copied from the collection. The array must have zero-based indexing.

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

#### Implements

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

# Exceptions

Exception | Condition
--- | ---
System..::.ArgumentNullException | array is null.
System..::.ArgumentOutOfRangeException | index is less than zero.
System..::.ArgumentException | array is multidimensional.-or- 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.
System..::.ArgumentException | The type of the source collection cannot be cast automatically to the type of the destination array.

# See Also

HashDictionary Class
Tangosol.Util.Collections Namespace