JsonObject.ICollection<KeyValuePair<String, JsonValue>>.Remove Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Removes the first occurrence of a specified key/value pair from the JsonObject.
Namespace:  System.Json
Assembly:  System.Json (in System.Json.dll)
Syntax
'Declaration
Private Function Remove ( _
    item As KeyValuePair(Of String, JsonValue) _
) As Boolean Implements ICollection(Of KeyValuePair(Of String, JsonValue)).Remove
bool ICollection<KeyValuePair<string, JsonValue>>.Remove(
    KeyValuePair<string, JsonValue> item
)
Parameters
- item
 Type: System.Collections.Generic.KeyValuePair<String, JsonValue>
 The key/value pair to remove.
Return Value
Type: System.Boolean
true if item was successfully removed from the JsonObject; otherwise, false. This method also returns false if item is not found in the JsonObject.
Implements
Exceptions
| Exception | Condition | 
|---|---|
| ArgumentNullException | item is nulla null reference (Nothing in Visual Basic). | 
Version Information
Silverlight
Supported in: 5, 4, 3
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.