JsonArray.ICollection<JsonNode>.CopyTo(JsonNode[], Int32) Yöntem

Tanım

Hedef dizinin belirtilen dizininden başlayarak tamamını Array uyumlu bir tek boyutlu diziye kopyalar.

 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

Parametreler

array
JsonNode[]

öğesinden JsonArraykopyalanan öğelerin hedefi olan tek boyutludurArray. Dizi sıfır tabanlı dizine sahip olmalıdır.

index
Int32

array içinde kopyalamanın başladığı sıfır tabanlı dizin.

Uygulamalar

Özel durumlar

array, null değeridir.

index 0'dan küçüktür.

Kaynak ICollection'daki öğelerin sayısı hedefin arraysonuna kadar olan kullanılabilir alandan index büyüktür.

Şunlara uygulanır