Export (0) Print
Expand All

JsonObject.ContainsKey Method

Checks whether a key/value pair with a specified key exists in the JSON CLR object type.

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

public override bool ContainsKey(
	string key
)

Parameters

key
Type: System.String
The key to check for.

Return Value

Type: System.Boolean
true if the JSON CLR object contains the key; otherwise, false.

Implements

IDictionary<TKey, TValue>.ContainsKey(TKey)

ExceptionCondition
ArgumentNullException

key 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