IRegion TKey, TValue  CopyTo Method Pivotal GemFire .NET Client Documentation
Copies the elements of the ICollection to an Array, starting at a particular Array index. This operation copies entries from local region only.

Namespace: GemStone.GemFire.Cache.Generic
Assembly: GemStone.GemFire.Cache (in GemStone.GemFire.Cache.dll) Version: 8.1.0.0
Syntax

void CopyTo(
	KeyValuePair<TKey, TValue>[] toArray,
	int startIdx
)

Parameters

toArray
Type:  System.Collections.Generic KeyValuePair TKey, TValue  
The one-dimensional Array that is the destination of the elements copied from ICollection. The Array must have zero-based indexing.
startIdx
Type: System Int32
The zero-based index in array at which copying begins.
Exceptions

ExceptionCondition
System ArgumentNullException if toArray is a null reference
System ArgumentOutOfRangeException if startIdx is less than 0.
System ArgumentException if toArray is multidimensional or The number of elements in the source ICollection is greater than the available space from startIdx to the end of the destination array or startIdx is equal to or greater than the length of array.
See Also