Click or drag to resize

DesktopUtilsgetJSONDouble Method

Returns a double 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 double getJSONDouble(
	JObject jsonObject,
	string key,
	double defaultValue = 0
)

Parameters

jsonObject
Type: JObject

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

key
Type: SystemString

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

defaultValue (Optional)
Type: SystemDouble

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

Return Value

Type: Double

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

See Also