Share via


Boolean.GetBoolean(String) Method

Definition

Returns true if and only if the system property named by the argument exists and is equal to, ignoring case, the string "true".

[Android.Runtime.Register("getBoolean", "(Ljava/lang/String;)Z", "")]
public static bool GetBoolean (string name);
[<Android.Runtime.Register("getBoolean", "(Ljava/lang/String;)Z", "")>]
static member GetBoolean : string -> bool

Parameters

name
String

the system property name.

Returns

the boolean value of the system property.

Attributes

Remarks

Returns true if and only if the system property named by the argument exists and is equal to, ignoring case, the string "true". A system property is accessible through getProperty, a method defined by the System class.

If there is no property with the specified name, or if the specified name is empty or null, then false is returned.

Java documentation for java.lang.Boolean.getBoolean(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also