JsonObject.CopyTo(KeyValuePair<String,JsonValue>[], Int32) Metoda

Definicja

Kopiuje elementy ICollection<T> elementu do obiektu Array, zaczynając od określonego Array indeksu.

public:
 virtual void CopyTo(cli::array <System::Collections::Generic::KeyValuePair<System::String ^, System::Json::JsonValue ^>> ^ array, int arrayIndex);
public void CopyTo (System.Collections.Generic.KeyValuePair<string,System.Json.JsonValue>[] array, int arrayIndex);
abstract member CopyTo : System.Collections.Generic.KeyValuePair<string, System.Json.JsonValue>[] * int -> unit
override this.CopyTo : System.Collections.Generic.KeyValuePair<string, System.Json.JsonValue>[] * int -> unit
Public Sub CopyTo (array As KeyValuePair(Of String, JsonValue)(), arrayIndex As Integer)

Parametry

array
KeyValuePair<String,JsonValue>[]

Jednowymiarowy Array obiekt docelowy elementów skopiowanych z ICollection<T>elementu . Element Array musi mieć indeksowanie oparte na zerach.

arrayIndex
Int32

Numerowany od zera indeks w tablicy array, od którego rozpoczyna się kopiowanie.

Implementuje

Uwagi

Uwaga

Przestrzeń nazw została zaprojektowana System.Json dla programu Silverlight, który nie jest już obsługiwany. W przypadku przetwarzania kodu JSON zalecamy zamiast tego używanie interfejsów API w System.Text.Json przestrzeni nazw.

Dotyczy