JsonArray.Insert(Int32, JsonNode) Метод

Определение

Вставляет элемент в JsonArray указанный индекс.

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

Параметры

index
Int32

Отсчитываемый от нуля индекс, по которому item следует вставить.

item
JsonNode

Вставка JsonNode .

Реализации

Исключения

index меньше 0 или index больше Count.

Применяется к