Boolean.ParseBoolean(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.
Parses the string argument as a boolean.
[Android.Runtime.Register("parseBoolean", "(Ljava/lang/String;)Z", "")]
public static bool ParseBoolean (string? s);
[<Android.Runtime.Register("parseBoolean", "(Ljava/lang/String;)Z", "")>]
static member ParseBoolean : string -> bool
Parameters
- s
- String
the String
containing the boolean
representation to be parsed
Returns
the boolean represented by the string argument
- Attributes
Remarks
Parses the string argument as a boolean. The boolean
returned represents the value true
if the string argument is not null
and is equal, ignoring case, to the string "true"
. Otherwise, a false value is returned, including for a null argument.
Example: Boolean.parseBoolean("True")
returns true
.<br> Example: Boolean.parseBoolean("yes")
returns false
.
Added in 1.5.
Java documentation for java.lang.Boolean.parseBoolean(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.