Json.NET - Quick Starts & API Documentation
Insert Method (index, item)
NamespacesNewtonsoft.Json.LinqJArrayInsert(Int32, JToken)
Inserts an item to the IList<(Of <(T>)>) at the specified index.
Declaration Syntax
C#Visual BasicVisual C++
public void Insert(
	int index,
	JToken item
)
Public Sub Insert ( _
	index As Integer, _
	item As JToken _
)
public:
virtual void Insert(
	int index, 
	JToken^ item
) sealed
Parameters
index (Int32)
The zero-based index at which item should be inserted.
item (JToken)
The object to insert into the IList<(Of <(T>)>).
Exceptions
ExceptionCondition
ArgumentOutOfRangeException index is not a valid index in the IList<(Of <(T>)>).
NotSupportedExceptionThe IList<(Of <(T>)>) is read-only.

Assembly: Newtonsoft.Json (Module: Newtonsoft.Json) Version: 3.5.0.0 (3.5.0.0)