JsonObject.CopyTo(KeyValuePair<String,JsonValue>[], Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從特定的 ICollection<T> 索引開始,將 Array 的項目複製到 Array。
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)
參數
- array
- KeyValuePair<String,JsonValue>[]
一維 Array,是從 ICollection<T> 複製過來之項目的目的端。 Array 必須有以零為起始的索引。
- arrayIndex
- Int32
array
中以零起始的索引,即開始複製的位置。
實作
備註
### 備註
注意
命名空間 System.Json 是針對不再支援的 Silverlight 所設計。 若要處理 JSON,建議您改用 命名空間中的 System.Text.Json API。