CookieCollection.CopyTo 메서드

정의

CookieCollection의 요소를 지정된 대상 배열에 복사합니다.

오버로드

CopyTo(Array, Int32)

특정 인덱스부터 시작하여 CookieCollection의 요소를 지정된 배열에 복사합니다.

CopyTo(Cookie[], Int32)

CookieCollection의 요소를 대상 배열의 지정된 인덱스에서 시작하는 Cookie 배열에 복사합니다.

CopyTo(Array, Int32)

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

특정 인덱스부터 시작하여 CookieCollection의 요소를 지정된 배열에 복사합니다.

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)

매개 변수

array
Array

CookieCollection을 복사할 대상 배열입니다.

index
Int32

복사를 시작하는 대상 배열의 인덱스(0부터 시작)입니다.

구현

예외

arraynull입니다.

index가 0보다 작은 경우

array가 다차원 배열인 경우

또는

CookieCollection의 요소 수가 index에서 대상 array 끝까지 사용 가능한 공간보다 큰 경우

CookieCollection의 요소를 대상 array의 형식으로 자동 캐스팅할 수 없는 경우

설명

매개 변수는 Arrayarray 0부터 시작하는 인덱싱이 있는 1차원이어야 합니다.

적용 대상

CopyTo(Cookie[], Int32)

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

CookieCollection의 요소를 대상 배열의 지정된 인덱스에서 시작하는 Cookie 배열에 복사합니다.

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)

매개 변수

array
Cookie[]

Cookie을 복사할 대상 CookieCollection 배열입니다.

index
Int32

복사를 시작하는 대상 배열의 인덱스(0부터 시작)입니다.

구현

예외

arraynull입니다.

index가 0보다 작은 경우

array가 다차원 배열인 경우

또는

CookieCollection의 요소 수가 index에서 대상 array 끝까지 사용 가능한 공간보다 큰 경우

CookieCollection의 요소를 대상 array의 형식으로 자동 캐스팅할 수 없는 경우

설명

매개 변수는 array 0부터 시작하는 인덱싱이 있는 1차원이어야 합니다.

적용 대상