CookieCollection.CopyTo Metod

Definition

Kopierar elementen i detta CookieCollection till den angivna målmatrisen.

Överlagringar

Name Description
CopyTo(Array, Int32)

Kopierar elementen i en CookieCollection till den angivna matrisen med början vid ett visst index.

CopyTo(Cookie[], Int32)

Kopierar elementen i detta CookieCollection till en Cookie matris som börjar vid det angivna indexet för målmatrisen.

CopyTo(Array, Int32)

Källa:
CookieCollection.cs
Källa:
CookieCollection.cs
Källa:
CookieCollection.cs
Källa:
CookieCollection.cs
Källa:
CookieCollection.cs

Kopierar elementen i en CookieCollection till den angivna matrisen med början vid ett visst 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)

Parametrar

array
Array

Målmatrisen CookieCollection som ska kopieras till.

index
Int32

Det nollbaserade indexet i målmatrisen där kopieringen börjar.

Implementeringar

Undantag

array är null.

index är mindre än noll.

array är flerdimensionellt.

-eller-

Antalet element i detta CookieCollection är större än det tillgängliga utrymmet från index till slutet av målet array.

Elementen i detta CookieCollection kan inte omvandlas automatiskt till måltypen array.

Kommentarer

Parametern Arrayarray måste vara endimensionell med nollbaserad indexering.

Gäller för

CopyTo(Cookie[], Int32)

Källa:
CookieCollection.cs
Källa:
CookieCollection.cs
Källa:
CookieCollection.cs
Källa:
CookieCollection.cs
Källa:
CookieCollection.cs

Kopierar elementen i detta CookieCollection till en Cookie matris som börjar vid det angivna indexet för målmatrisen.

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)

Parametrar

array
Cookie[]

Cookie Målmatrisen CookieCollection som ska kopieras till.

index
Int32

Det nollbaserade indexet i målmatrisen där kopieringen börjar.

Implementeringar

Undantag

array är null.

index är mindre än noll.

array är flerdimensionellt.

-eller-

Antalet element i detta CookieCollection är större än det tillgängliga utrymmet från index till slutet av målet array.

Elementen i detta CookieCollection kan inte omvandlas automatiskt till måltypen array.

Kommentarer

Parametern array måste vara endimensionell med nollbaserad indexering.

Gäller för