Boolean.GetBoolean(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.