Sdílet prostřednictvím


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

Definice

Zkopíruje prvky pole JsonObject typu KeyValuePair počínaje zadaným indexem pole.

 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>[]

Jednorozměrné pole, které je cílem prvků zkopírovaných z JsonObject.

index
Int32

Index založený na nule v poli array, ve kterém kopírování začíná.

Implementuje

Výjimky

array je null.

index je menší než 0.

Počet prvků ve zdrojové ICollection je větší než dostupné místo od index konce cíle array.

Platí pro