JsonObjectTryGetValue Method

Tries to get the value associated with the specified propertyName from the JsonObject.

Definition

Namespace: KGySoft.Json
Assembly: KGySoft.Json (in KGySoft.Json.dll) Version: 3.0.0
C#
public bool TryGetValue(
	string propertyName,
	out JsonValue value
)

Parameters

propertyName  String
The name of the property to get.
value  JsonValue
When this method returns, the value associated with the specified name, if the propertyName is found; otherwise, Undefined. This parameter is passed uninitialized.

Return Value

Boolean
if the key was found in the JsonObject; otherwise, .

Implements

IDictionaryTKey, TValueTryGetValue(TKey, TValue)

Exceptions

ArgumentNullExceptionpropertyName is .

See Also