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

Definition

Kopierar elementen i JsonObject till en matris av typen KeyValuePair med början vid det angivna matrisindexet.

 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

Parametrar

array
KeyValuePair<String,JsonNode>[]

Den endimensionella matris som är målet för de element som kopieras från JsonObject.

index
Int32

Det nollbaserade index array där kopieringen börjar.

Implementeringar

Undantag

array är null.

index är mindre än 0.

Antalet element i käll-ICollection är större än det tillgängliga utrymmet från index till slutet av målet array.

Gäller för