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) |
Parses the attribute at |
| GetAttributeUnsignedIntValue(String, String, Int32) |
Parses |
GetAttributeUnsignedIntValue(Int32, Int32)
Parses the attribute at index as an unsigned 32-bit decimal integer and converts the result to a signed 32-bit 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 in the format of an unsigned decimal integer.
The attribute value is greater than the maximum unsigned 32-bit 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)
Parses attribute as an unsigned 32-bit decimal integer and converts the result to a signed 32-bit 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
The namespace URI used to look up the attribute.
- 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 in the format of an unsigned decimal integer.
The attribute value is greater than the maximum unsigned 32-bit 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.