JsonArray.CopyTo(JsonValue[], Int32) 方法

定義

從特定的 ICollection<T> 索引開始,將 Array 的項目複製到 Array

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)

參數

array
JsonValue[]

一維 Array,是從 ICollection<T> 複製過來之項目的目的端。 Array 必須有以零為起始的索引。

arrayIndex
Int32

array 中以零起始的索引,即開始複製的位置。

實作

備註

注意

命名空間 System.Json 是針對不再支援的 Silverlight 所設計。 若要處理 JSON,建議您改用 命名空間中的 System.Text.Json API。

適用於