Uredi

Deli z drugimi prek


CookieCollection.CopyTo Method

Definition

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

Overloads

CopyTo(Array, Int32)

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

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)

Source:
CookieCollection.cs
Source:
CookieCollection.cs
Source:
CookieCollection.cs

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
Public Sub CopyTo (array As Array, index As Integer)

Parameters

array
Array

The target array to which the CookieCollection will be copied.

index
Int32

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

Implements

Exceptions

array is null.

index is less than zero.

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 array parameter must be one-dimensional with zero-based indexing.

Applies to

CopyTo(Cookie[], Int32)

Source:
CookieCollection.cs
Source:
CookieCollection.cs
Source:
CookieCollection.cs

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(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
member 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

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

Implements

Exceptions

array is null.

index is less than zero.

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