Click or drag to resize

CookieCollectionCopyTo Method (Array, Int32)

Copies the elements of the collection to the specified Array, starting at the specified index in the array.

Namespace:  Sfs2X.WebSocketSharp.Net
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public void CopyTo(
	Array array,
	int index
)

Parameters

array
Type: SystemArray
An Array that represents the destination of the elements copied from the collection.
index
Type: SystemInt32
An Int32 that represents the zero-based index in array at which copying begins.

Implements

ICollectionCopyTo(Array, Int32)
Exceptions
ExceptionCondition
ArgumentNullExceptionarray is .
ArgumentOutOfRangeExceptionindex is less than zero.
ArgumentException

array is multidimensional.

-or-

The number of elements in the collection is greater than the available space from index to the end of the destination array.

InvalidCastException The elements in the collection cannot be cast automatically to the type of the destination array.
See Also