Attempts to get the value that corresponds to the specified key.
Assembly: System.Json (in System.Json.dll)
- Type: System.String
The key of the value to retrieve.
Return ValueType: System.Boolean
true if the instance of the JsonObject contains an element with the specified key; otherwise, false.
ImplementsIDictionary<TKey, TValue>.TryGetValue(TKey, TValue)
This method combines the functionality of the method and the property. If the key is not found, then the value is set to null.
Use the method if your code frequently attempts to access keys that are not in the JsonValue object. Using this method is more efficient than catching the thrown by the method.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.