C-DEngine 5.105

CookieCollection..::..CopyTo Method (array<Cookie>[]()[][], Int32)

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

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

Syntax


public void CopyTo(
	Cookie[] array,
	int index
)
Public Sub CopyTo ( _
	array As Cookie(), _
	index As Integer _
)
public:
void CopyTo(
	array<Cookie^>^ array, 
	int^ index
)

Parameters

array
Type: array<Cookie>[]()[][]
An array of Cookie 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 The number of elements in the collection is greater than the available space from index to the end of the destination array.