Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: bool TryGetValue(string, out JsonValue)

Declaration

public virtual bool TryGetValue(
    string key,
    out JsonValue value
)

Summary

Attempts to retrieve the value associated with the specified key if this is a JsonDict; otherwise, throws.

Parameters

stringkey The key for which to try to retrieve the value.
out JsonValuevalue Receives the value associated with the specified key, or null if the key is not in the dictionary. (Note that null may also be a valid value in case of success.)

Returns

True if the key was in the dictionary; otherwise, false.