JsonArray.Insert(Int32, JsonValue) 方法

定義

將項目插入位於指定索引的 IList<T>

public:
 virtual void Insert(int index, System::Json::JsonValue ^ item);
public void Insert (int index, System.Json.JsonValue item);
abstract member Insert : int * System.Json.JsonValue -> unit
override this.Insert : int * System.Json.JsonValue -> unit
Public Sub Insert (index As Integer, item As JsonValue)

參數

index
Int32

應在 item 插入以零為起始的索引。

item
JsonValue

要插入 IList<T> 的物件。

實作

備註

注意

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

適用於