CookieCollection.CopyTo CookieCollection.CopyTo CookieCollection.CopyTo CookieCollection.CopyTo Method

Definition

Copies the elements of this CookieCollection to the specified destination array.

Overloads

CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32)

Copies the elements of a CookieCollection to the specified array, starting at a particular index.

CopyTo(Cookie[], Int32) CopyTo(Cookie[], Int32) CopyTo(Cookie[], Int32) CopyTo(Cookie[], Int32)

Copies the elements of this CookieCollection to a Cookie array starting at the specified index of the target array.

CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32)

Copies the elements of a CookieCollection to the specified array, starting at a particular index.

public:
 virtual void CopyTo(Array ^ array, int index);
public void CopyTo (Array array, int index);
abstract member CopyTo : Array * int -> unit
override this.CopyTo : Array * int -> unit

Parameters

array
Array Array Array Array

The target array to which the CookieCollection will be copied.

index
Int32 Int32 Int32 Int32

The zero-based index in the target array where copying begins.

Implements

Exceptions

array is multidimensional.

-or-

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

The elements in this CookieCollection cannot be cast automatically to the type of the destination array.

Remarks

The Arrayarray parameter must be one-dimensional with zero-based indexing.

Copies the elements of this CookieCollection to a Cookie array starting at the specified index of the target array.

public:
 virtual void CopyTo(cli::array <System::Net::Cookie ^> ^ array, int index);
public void CopyTo (System.Net.Cookie[] array, int index);
abstract member CopyTo : System.Net.Cookie[] * int -> unit
override this.CopyTo : System.Net.Cookie[] * int -> unit
Public Sub CopyTo (array As Cookie(), index As Integer)

Parameters

array
Cookie[]

The target Cookie array to which the CookieCollection will be copied.

index
Int32 Int32 Int32 Int32

The zero-based index in the target array where copying begins.

Exceptions

array is multidimensional.

-or-

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

The elements in this CookieCollection cannot be cast automatically to the type of the destination array.

Remarks

The array parameter must be one-dimensional with zero-based indexing.

Applies to