Json.NET - Quick Starts & API Documentation
Insert Method (index, item)
Namespaces ► Newtonsoft.Json.Linq ► JArray ► Insert(Int32, JToken)
Inserts an item to the IList<(Of <(<'T>)>)> at the specified index.
Declaration Syntax
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. |