Remove Method (item)

Json.NET

Json.NET - Quick Starts & API Documentation Remove Method (item)
NamespacesNewtonsoft.Json.LinqJArrayRemove(JToken)
Removes the first occurrence of a specific object from the ICollection<(Of <(<'T>)>)>.
Declaration Syntax
C# Visual Basic Visual C++
public bool Remove(
	JToken item
)
Public Function Remove ( _
	item As JToken _
) As Boolean
public:
virtual bool Remove(
	JToken^ item
) sealed
Parameters
item (JToken)
The object to remove from the ICollection<(Of <(<'T>)>)>.
Return Value
true if item was successfully removed from the ICollection<(Of <(<'T>)>)>; otherwise, false. This method also returns false if item is not found in the original ICollection<(Of <(<'T>)>)>.
Exceptions
Exception Condition
NotSupportedException The ICollection<(Of <(<'T>)>)> is read-only.

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