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

定义

从特定的 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。

适用于