語言

XmlReaderResourceParser.GetAttributeBooleanValue 方法

定義

多載

名稱 Description
GetAttributeBooleanValue(Int32, Boolean)

回傳屬性的布林值,位於「index」。

GetAttributeBooleanValue(String, String, Boolean)

回傳布林值的「屬性」。

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

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

GetAttributeBooleanValue(String, String, Boolean)

回傳布林值的「屬性」。

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

如果找不到該屬性該回傳什麼。

傳回

結果價值。

實作

備註

回傳布林值的「屬性」。

Android 參考資料。android.util.AttributeSet.getAttributeBooleanValue

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於