Język

XmlReaderResourceParser.GetAttributeBooleanValue Method

Definition

Overloads

Name Description
GetAttributeBooleanValue(Int32, Boolean)

Return the boolean value of attribute at 'index'.

GetAttributeBooleanValue(String, String, Boolean)

Return the boolean value of 'attribute'.

GetAttributeBooleanValue(Int32, Boolean)

Return the boolean value of attribute at 'index'.

public bool GetAttributeBooleanValue(int index, bool defaultValue);
abstract member GetAttributeBooleanValue : int * bool -> bool
override this.GetAttributeBooleanValue : int * bool -> bool

Parameters

index
Int32

Index of the desired attribute, 0...count-1.

defaultValue
Boolean

What to return if the attribute isn't found.

Returns

Resulting value.

Implements

Remarks

Return the boolean value of attribute at 'index'.

Android reference for android.util.AttributeSet.getAttributeBooleanValue.

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

GetAttributeBooleanValue(String, String, Boolean)

Return the boolean value of 'attribute'.

public bool GetAttributeBooleanValue(string? namespaceURI, string? attribute, bool defaultValue);
abstract member GetAttributeBooleanValue : string * string * bool -> bool
override this.GetAttributeBooleanValue : string * string * bool -> bool

Parameters

namespaceURI
String
attribute
String

The attribute to retrieve.

defaultValue
Boolean

What to return if the attribute isn't found.

Returns

Resulting value.

Implements

Remarks

Return the boolean value of 'attribute'.

Android reference for android.util.AttributeSet.getAttributeBooleanValue.

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