JsonObject.ICollection<KeyValuePair<String,JsonNode>>.CopyTo Méthode

Définition

Copie les éléments du JsonObject tableau dans un tableau de type KeyValuePair commençant à l’index de tableau spécifié.

 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

Paramètres

array
KeyValuePair<String,JsonNode>[]

Tableau unidimensionnel qui est la destination des éléments copiés à partir de la JsonObject.

index
Int32

Index de base zéro dans l'array à partir duquel la copie commence.

Implémente

Exceptions

array a la valeur null.

index est inférieur à 0.

Le nombre d’éléments dans la source ICollection est supérieur à l’espace disponible de index la fin de la destination array.

S’applique à