语言

XmlReaderResourceParser.GetAttributeBooleanValue 方法

定义

重载

名称 说明
GetAttributeBooleanValue(Int32, Boolean)

返回“index”处属性的布尔值。

GetAttributeBooleanValue(String, String, Boolean)

返回“attribute”的布尔值。

GetAttributeBooleanValue(Int32, Boolean)

返回“index”处属性的布尔值。

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

参数

index
Int32

所需属性的索引,0...count-1。

defaultValue
Boolean

如果未找到该属性,则返回的内容。

返回

生成的值。

实现

注解

返回“index”处属性的布尔值。

Android 参考。android.util.AttributeSet.getAttributeBooleanValue

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

GetAttributeBooleanValue(String, String, Boolean)

返回“attribute”的布尔值。

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

参数

namespaceURI
String
attribute
String

要检索的属性。

defaultValue
Boolean

如果未找到该属性,则返回的内容。

返回

生成的值。

实现

注解

返回“attribute”的布尔值。

Android 参考。android.util.AttributeSet.getAttributeBooleanValue

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于