JsonObject.ICollection<KeyValuePair<String,JsonNode>>.CopyTo Metoda

Definicja

Kopiuje elementy do JsonObject tablicy typu KeyValuePair rozpoczynające się od określonego indeksu tablicy.

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

Parametry

array
KeyValuePair<String,JsonNode>[]

Tablica jednowymiarowa, która jest miejscem docelowym elementów skopiowanych z JsonObjectelementu .

index
Int32

Numerowany od zera indeks w tablicy array, od którego rozpoczyna się kopiowanie.

Implementuje

Wyjątki

array to null.

index wartość jest mniejsza niż 0.

Liczba elementów w źródłowym obiekcie ICollection jest większa niż dostępna przestrzeń od index do końca miejsca docelowego array.

Dotyczy