Läs på engelska Redigera

Dela via


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

Definition

Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.

C#
public void CopyTo(System.Collections.Generic.KeyValuePair<string,System.Json.JsonValue>[] array, int arrayIndex);

Parameters

array
KeyValuePair<String,JsonValue>[]

The one-dimensional Array that is the destination of the elements copied from ICollection<T>. The Array must have zero-based indexing.

arrayIndex
Int32

The zero-based index in array at which copying begins.

Implements

Remarks

Anteckning

The System.Json namespace was designed for Silverlight, which is no longer supported. For processing JSON, we recommend using APIs in the System.Text.Json namespace instead.

Applies to

Produkt Versioner
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)