Click or drag to resize

DesktopUtilsgetJSONBool Method

Returns a bool identified by "key" from "jsonObject".

"defaultValue" is returned if no match is found.

The JSON object to retrieve a value from.The key to search for.The value to return if no key match is found.

Namespace:  Openfin.Desktop
Assembly:  OpenfinDesktop (in OpenfinDesktop.dll) Version: 17.6.0
Syntax
C#
public static bool getJSONBool(
	JObject jsonObject,
	string key,
	bool defaultValue = false
)

Parameters

jsonObject
Type: JObject

[Missing <param name="jsonObject"/> documentation for "M:Openfin.Desktop.DesktopUtils.getJSONBool(Newtonsoft.Json.Linq.JObject,System.String,System.Boolean)"]

key
Type: SystemString

[Missing <param name="key"/> documentation for "M:Openfin.Desktop.DesktopUtils.getJSONBool(Newtonsoft.Json.Linq.JObject,System.String,System.Boolean)"]

defaultValue (Optional)
Type: SystemBoolean

[Missing <param name="defaultValue"/> documentation for "M:Openfin.Desktop.DesktopUtils.getJSONBool(Newtonsoft.Json.Linq.JObject,System.String,System.Boolean)"]

Return Value

Type: Boolean

[Missing <returns> documentation for "M:Openfin.Desktop.DesktopUtils.getJSONBool(Newtonsoft.Json.Linq.JObject,System.String,System.Boolean)"]

See Also