C-DEngine 5.105

CookieCollection..::..CopyTo Method (Array, Int32)

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

Namespace:  WebSocketSharp.Net
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public void CopyTo(
	Array array,
	int index
)
Public Sub CopyTo ( _
	array As Array, _
	index As Integer _
)
public:
void CopyTo(
	Array^ array, 
	int^ index
)

Parameters

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

Exceptions


ExceptionCondition
ArgumentNullExceptionarray is nullNothingnullptra null reference (Nothing in Visual Basic).
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.