XmlReaderPullParser.GetAttributeValue 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 |
|---|---|
| GetAttributeValue(Int32) |
Gets the indexed attribute's value from the reader. |
| GetAttributeValue(String, String) |
Gets an attribute value by local name and namespace URI. |
GetAttributeValue(Int32)
Gets the indexed attribute's value from the reader.
public string GetAttributeValue(int index);
abstract member GetAttributeValue : int -> string
override this.GetAttributeValue : int -> string
Parameters
- index
- Int32
The attribute index.
Returns
The attribute value.
Implements
Remarks
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
GetAttributeValue(String, String)
Gets an attribute value by local name and namespace URI.
public string? GetAttributeValue(string? namespaceURI, string? name);
abstract member GetAttributeValue : string * string -> string
override this.GetAttributeValue : string * string -> string
Parameters
- namespaceURI
- String
The namespace URI to pass to the reader.
- name
- String
The attribute's local name, or null.
Returns
The value returned by the reader, or null when name is null.
Implements
Remarks
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.