Compartir a través de


Field.GetBoolean(Object) Method

Definition

Gets the value of a static or instance boolean field.

[Android.Runtime.Register("getBoolean", "(Ljava/lang/Object;)Z", "")]
public bool GetBoolean (Java.Lang.Object? obj);
[<Android.Runtime.Register("getBoolean", "(Ljava/lang/Object;)Z", "")>]
member this.GetBoolean : Java.Lang.Object -> bool

Parameters

obj
Object

the object to extract the boolean value from

Returns

the value of the boolean field

Attributes

Exceptions

if the object is null and the field is non-static

if the object is not compatible with the declaring class

if this field is not accessible

Remarks

Gets the value of a static or instance boolean field.

Java documentation for java.lang.reflect.Field.getBoolean(java.lang.Object).

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