XmlPullParserReader.GetAttribute 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 |
|---|---|
| GetAttribute(String, String) |
Gets an attribute value by local name and namespace URI. |
| GetAttribute(String) |
Gets an attribute value using a qualified name. |
| GetAttribute(Int32) |
Gets a parser attribute value or namespace URI by index. |
GetAttribute(String, String)
Gets an attribute value by local name and namespace URI.
public override string? GetAttribute(string localName, string? namespaceName);
override this.GetAttribute : string * string -> string
Parameters
- localName
- String
The attribute's local name.
- namespaceName
- String
The namespace URI to use in the lookup.
Returns
The value returned by the parser, which may be null.
Applies to
GetAttribute(String)
Gets an attribute value using a qualified name.
public override string? GetAttribute(string name);
override this.GetAttribute : string -> string
Parameters
- name
- String
The attribute name, optionally with a namespace prefix.
Returns
The value returned by the parser, which may be null.