JsonArray.CopyTo(JsonValue[], Int32) Method

Definition

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

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

Parameters

array
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

Note

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