XmlReaderResourceParser.GetAttributeUnsignedIntValue メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| Name | 説明 |
|---|---|
| GetAttributeUnsignedIntValue(Int32, Int32) |
|
| GetAttributeUnsignedIntValue(String, String, Int32) |
|
GetAttributeUnsignedIntValue(Int32, Int32)
indexの属性を符号なし 32 ビット 10 進整数として解析し、結果を符号付き 32 ビット整数に変換します。
public int GetAttributeUnsignedIntValue(int index, int defaultValue);
abstract member GetAttributeUnsignedIntValue : int * int -> int
override this.GetAttributeUnsignedIntValue : int * int -> int
パラメーター
- index
- Int32
目的の属性のインデックス 0...count-1。
- defaultValue
- Int32
属性が見つからない場合に返す内容。
戻り値
変換された値。属性が存在しない場合は defaultValue 。
実装
例外
属性値が符号なし 10 進整数の形式ではありません。
属性値は、最大符号なし 32 ビット整数より大きい値です。
注釈
この XML リーダー アダプターは、符号なし 10 進値のみをサポートします。 0x や # などの 16 進数のプレフィックスはサポートされていません。
android.util.AttributeSet.getAttributeUnsignedIntValueの Android リファレンス。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。
適用対象
GetAttributeUnsignedIntValue(String, String, Int32)
attributeを符号なし 32 ビットの 10 進整数として解析し、結果を符号付き 32 ビット整数に変換します。
public int GetAttributeUnsignedIntValue(string? namespaceURI, string? attribute, int defaultValue);
abstract member GetAttributeUnsignedIntValue : string * string * int -> int
override this.GetAttributeUnsignedIntValue : string * string * int -> int
パラメーター
- namespaceURI
- String
属性の検索に使用される名前空間 URI。
- attribute
- String
取得する属性。
- defaultValue
- Int32
属性が見つからない場合に返す内容。
戻り値
変換された値。属性が存在しない場合は defaultValue 。
実装
例外
属性値が符号なし 10 進整数の形式ではありません。
属性値は、最大符号なし 32 ビット整数より大きい値です。
注釈
この XML リーダー アダプターは、符号なし 10 進値のみをサポートします。 0x や # などの 16 進数のプレフィックスはサポートされていません。
android.util.AttributeSet.getAttributeUnsignedIntValueの Android リファレンス。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。