JsonArray.ICollection<JsonNode>.CopyTo(JsonNode[], Int32) 메서드

정의

대상 배열의 지정된 인덱스에서 시작하여 전체 Array을 호환되는 1차원 배열에 복사합니다.

 virtual void System.Collections.Generic.ICollection<System.Text.Json.Nodes.JsonNode>.CopyTo(cli::array <System::Text::Json::Nodes::JsonNode ^> ^ array, int index) = System::Collections::Generic::ICollection<System::Text::Json::Nodes::JsonNode ^>::CopyTo;
void ICollection<JsonNode>.CopyTo (System.Text.Json.Nodes.JsonNode?[]? array, int index);
abstract member System.Collections.Generic.ICollection<System.Text.Json.Nodes.JsonNode>.CopyTo : System.Text.Json.Nodes.JsonNode[] * int -> unit
override this.System.Collections.Generic.ICollection<System.Text.Json.Nodes.JsonNode>.CopyTo : System.Text.Json.Nodes.JsonNode[] * int -> unit
Sub CopyTo (array As JsonNode(), index As Integer) Implements ICollection(Of JsonNode).CopyTo

매개 변수

array
JsonNode[]

Array에서 복사한 요소의 대상인 일차원 JsonArray입니다. Array의 인덱스는 0부터 시작해야 합니다.

index
Int32

array에서 복사가 시작되는 0부터 시작하는 인덱스입니다.

구현

예외

array이(가) null인 경우

index 가 0보다 작습니다.

원본 ICollection의 요소 수가 대상array의 끝까지 사용 가능한 공간 index 보다 큽니다.

적용 대상