Insert Method (index, item)

Json.NET

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 Basic Visual 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
Exception Condition
ArgumentOutOfRangeException index is not a valid index in the IList<(Of <(<'T>)>)>.
NotSupportedException The IList<(Of <(<'T>)>)> is read-only.

Assembly: Newtonsoft.Json (Module: Newtonsoft.Json) Version: 4.0.2.0 (4.0.2.13623)