try_get_value method

try_get_value

Gets the value associated with the specified key.

Returns

True if the dictionary contains an element with the specified key; otherwise, false.

def try_get_value(self, key, value):
    ...
ParameterTypeDescription
keystrThe key whose value to get.
valueanyWhen this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.

See Also