Export (0) Print
Expand All

JsonObject.ICollection<KeyValuePair<String, JsonValue>>.Remove Method

Removes the first occurrence of a specified key/value pair from the JsonObject.

Namespace:  System.Json
Assembly:  System.Json (in System.Json.dll)

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

ICollection<T>.Remove(T)

ExceptionCondition
ArgumentNullException

item is null.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2015 Microsoft