Click or drag to resize

DesktopUtilsgetJSONInt Method

Returns an int 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: 16.7.0
Syntax
C#
public static int getJSONInt(
	JObject jsonObject,
	string key,
	int defaultValue = 0
)

Parameters

jsonObject
Type: JObject

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

key
Type: SystemString

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

defaultValue (Optional)
Type: SystemInt32

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

Return Value

Type: Int32

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

See Also