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

Definition

Kopiert die Elemente des JsonObject Typs "KeyValuePair" in ein Array vom Typ "KeyValuePair" beginnend am angegebenen Arrayindex.

 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

Parameter

array
KeyValuePair<String,JsonNode>[]

Das eindimensionale Array, das das Ziel der elemente ist, aus JsonObjectdenen kopiert wurde.

index
Int32

Der nullbasierte Index, in array dem das Kopieren beginnt.

Implementiert

Ausnahmen

array ist null.

index ist kleiner als 0.

Die Anzahl der Elemente in der Quell-ICollection ist größer als der verfügbare Speicherplatz vom index Ende des Ziels array.

Gilt für: