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

Definisi

Menyalin elemen ke JsonObject array jenis KeyValuePair mulai dari indeks array yang ditentukan.

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

Array satu dimensi yang merupakan tujuan elemen yang disalin dari JsonObject.

index
Int32

Indeks berbasis nol tempat array penyalinan dimulai.

Penerapan

Pengecualian

arrayadalah null.

index kurang dari 0.

Jumlah elemen dalam ICollection sumber lebih besar dari ruang yang tersedia dari index ke akhir tujuan array.

Berlaku untuk