JsonObject.ICollection<KeyValuePair<String, JsonValue>>.Contains Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Checks whether the JsonObject contains a specified key/value pair.
Namespace: System.Json
Assembly: System.Json (in System.Json.dll)
Syntax
'Declaration
Private Function Contains ( _
item As KeyValuePair(Of String, JsonValue) _
) As Boolean Implements ICollection(Of KeyValuePair(Of String, JsonValue)).Contains
bool ICollection<KeyValuePair<string, JsonValue>>.Contains(
KeyValuePair<string, JsonValue> item
)
Parameters
- item
Type: System.Collections.Generic.KeyValuePair<String, JsonValue>
The key/value pair to check for.
Return Value
Type: System.Boolean
true if the item is contained in the instance of the JsonObject; otherwise, false.
Implements
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | key 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.