JsonObject.GetNamedBoolean JsonObject.GetNamedBoolean JsonObject.GetNamedBoolean JsonObject.GetNamedBoolean Method

Definition

Overloads

GetNamedBoolean(String) GetNamedBoolean(String) GetNamedBoolean(String) GetNamedBoolean(String)

Gets the Boolean value with the specified name.

GetNamedBoolean(String, Boolean) GetNamedBoolean(String, Boolean) GetNamedBoolean(String, Boolean) GetNamedBoolean(String, Boolean)

Gets the Boolean value with the specified name, or the provided default value if no such named value is found.

GetNamedBoolean(String) GetNamedBoolean(String) GetNamedBoolean(String) GetNamedBoolean(String)

Gets the Boolean value with the specified name.

public : Platform::Boolean GetNamedBoolean(Platform::String name)
bool GetNamedBoolean(winrt::hstring name) const;
public bool GetNamedBoolean(String name)
Public Function GetNamedBoolean(name As String) As bool
Parameters
name
String String

The name.

Returns
bool bool

The Boolean with the specified name.

Remarks

This method should always used with a try/catch block because it throws an exception if the name found is not a Boolean type or the name is not found.

See Also

GetNamedBoolean(String, Boolean) GetNamedBoolean(String, Boolean) GetNamedBoolean(String, Boolean) GetNamedBoolean(String, Boolean)

Gets the Boolean value with the specified name, or the provided default value if no such named value is found.

public : Platform::Boolean GetNamedBoolean(Platform::String name, bool defaultValue)
bool GetNamedBoolean(winrt::hstring name, bool defaultValue) const;
public bool GetNamedBoolean(String name, Boolean defaultValue)
Public Function GetNamedBoolean(name As String, defaultValue As Boolean) As bool
Parameters
name
String String

The name.

defaultValue
Boolean Boolean

The default value to use if the JSON property is not found.

Returns
bool bool

The Boolean with the specified name, or if this value wasn't found, the defaultValue is returned.

See Also