Copies the elements of the CacheableHashSet to an System.Array, starting at a particular System.Array index.

Namespace: GemStone.GemFire.Cache
Assembly:  GemStone.GemFire.Cache (in GemStone.GemFire.Cache.dll)
Version: 2.5.0.1

Syntax

C#
public virtual void CopyTo(
	ICacheableKey[] array,
	int arrayIndex
)
Visual Basic (Declaration)
Public Overridable Sub CopyTo ( _
	array As ICacheableKey(), _
	arrayIndex As Integer _
)
Visual C++
public:
virtual void CopyTo (
	array<ICacheableKey^>^ array, 
	int arrayIndex
)

Parameters

array
array<ICacheableKey>[]()
The one-dimensional System.Array that is the destination of the elements copied from CacheableHashSet. The System.Array must have zero-based indexing.
arrayIndex
Int32
The zero-based index in array at which copying begins.

Exceptions

ExceptionCondition
GemStone.GemFire.Cache..::IllegalArgumentException arrayIndex is less than 0 or array is null.
GemStone.GemFire.Cache..::OutOfRangeException arrayIndex is equal to or greater than the length of array. -or-The number of elements in the source CacheableHashSet is greater than the available space from arrayIndex to the end of the destination array.

See Also