XmlReaderResourceParser.GetAttributeUnsignedIntValue Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| GetAttributeUnsignedIntValue(Int32, Int32) |
Return the value of attribute at 'index' as an unsigned decimal integer. |
| GetAttributeUnsignedIntValue(String, String, Int32) |
Return the value of 'attribute' as an unsigned decimal integer. |
GetAttributeUnsignedIntValue(Int32, Int32)
Return the value of attribute at 'index' as an unsigned decimal integer.
public int GetAttributeUnsignedIntValue(int index, int defaultValue);
abstract member GetAttributeUnsignedIntValue : int * int -> int
override this.GetAttributeUnsignedIntValue : int * int -> int
Parameters
- index
- Int32
Index of the desired attribute, 0...count-1.
- defaultValue
- Int32
What to return if the attribute isn't found.
Returns
The converted value, or defaultValue if the attribute does not exist.
Implements
Exceptions
The attribute value is not a valid unsigned decimal integer.
Remarks
This XML reader adapter supports unsigned decimal values only. Hexadecimal prefixes such as 0x and # are not supported.
Android reference for android.util.AttributeSet.getAttributeUnsignedIntValue.
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
GetAttributeUnsignedIntValue(String, String, Int32)
Return the value of 'attribute' as an unsigned decimal integer.
public int GetAttributeUnsignedIntValue(string? namespaceURI, string? attribute, int defaultValue);
abstract member GetAttributeUnsignedIntValue : string * string * int -> int
override this.GetAttributeUnsignedIntValue : string * string * int -> int
Parameters
- namespaceURI
- String
- attribute
- String
The attribute to retrieve.
- defaultValue
- Int32
What to return if the attribute isn't found.
Returns
The converted value, or defaultValue if the attribute does not exist.
Implements
Exceptions
The attribute value is not a valid unsigned decimal integer.
Remarks
This XML reader adapter supports unsigned decimal values only. Hexadecimal prefixes such as 0x and # are not supported.
Android reference for android.util.AttributeSet.getAttributeUnsignedIntValue.
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.