JsonObjectTryGetValue Method |
Gets the value associated with the specified key.
Namespace: Dextronet.JsonieAssembly: Dextronet.Jsonie (in Dextronet.Jsonie.dll) Version: 1.0.0.0
Syntax public bool TryGetValue(
string key,
ref JsonValue value
)
Public Function TryGetValue (
key As String,
ByRef value As JsonValue
) As Boolean
Parameters
- key
- Type: SystemString
The key of the member to get. - value
- Type: Dextronet.JsonieJsonValue
When this method returns, contains the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter.
Return Value
Type:
Booleantrue if object contains member with specified key, false otherwise.
Implements
IDictionaryTKey, TValueTryGetValue(TKey, TValue)Exceptions See Also