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

Definitie

Kopieert de elementen van de JsonObject naar een matrix van het type KeyValuePair vanaf de opgegeven matrixindex.

 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

Parameters

array
KeyValuePair<String,JsonNode>[]

De eendimensionale matrix die de bestemming is van de elementen die zijn gekopieerd uit JsonObject.

index
Int32

De op nul gebaseerde index array waarin kopiƫren begint.

Implementeringen

Uitzonderingen

array is null.

index is kleiner dan 0.

Het aantal elementen in de bron-ICollection is groter dan de beschikbare ruimte van index tot het einde van de bestemming array.

Van toepassing op