XmlReaderResourceParser.GetAttributeIntValue 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| GetAttributeIntValue(Int32, Int32) |
回傳 'index' 處的整數值屬性。 |
| GetAttributeIntValue(String, String, Int32) |
回傳整數值的「屬性」。 |
GetAttributeIntValue(Int32, Int32)
回傳 'index' 處的整數值屬性。
public int GetAttributeIntValue(int index, int defaultValue);
abstract member GetAttributeIntValue : int * int -> int
override this.GetAttributeIntValue : int * int -> int
參數
- index
- Int32
目標屬性的索引,0...count-1。
- defaultValue
- Int32
如果找不到該屬性該回傳什麼。
傳回
結果價值。
實作
備註
回傳 'index' 處的整數值屬性。
Android 參考資料。android.util.AttributeSet.getAttributeIntValue
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
GetAttributeIntValue(String, String, Int32)
回傳整數值的「屬性」。
public int GetAttributeIntValue(string? namespaceURI, string? attribute, int defaultValue);
abstract member GetAttributeIntValue : string * string * int -> int
override this.GetAttributeIntValue : string * string * int -> int
參數
- namespaceURI
- String
- attribute
- String
要取回的屬性。
- defaultValue
- Int32
如果找不到該屬性該回傳什麼。
傳回
結果價值。
實作
備註
回傳整數值的「屬性」。
Android 參考資料。android.util.AttributeSet.getAttributeIntValue
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。