Driver.GetValue 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 |
|---|---|
| GetValue(String, String) |
Looks up an attribute's value by parser-reported name and optional namespace URI. |
| GetValue(String) |
Looks up an attribute's value by its parser-reported name. |
| GetValue(Int32) |
Look up an attribute's value by index. |
GetValue(String, String)
Looks up an attribute's value by parser-reported name and optional namespace URI.
[Android.Runtime.Register("getValue", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "GetGetValue_Ljava_lang_String_Ljava_lang_String_Handler")]
public virtual string? GetValue(string? uri, string? localName);
[<Android.Runtime.Register("getValue", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "GetGetValue_Ljava_lang_String_Ljava_lang_String_Handler")>]
abstract member GetValue : string * string -> string
override this.GetValue : string * string -> string
Parameters
- uri
- String
The namespace URI to match. The meaning of null depends on the parser.
- localName
- String
The attribute name as reported by the pull parser.
Returns
The attribute value, or null if no matching attribute exists.
Implements
- Attributes
Remarks
For a null namespace, the default Android parser matches any namespace; a reader created by XmlReader.Create(TextReader) matches attributes with no namespace.
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
GetValue(String)
Looks up an attribute's value by its parser-reported name.
[Android.Runtime.Register("getValue", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetValue_Ljava_lang_String_Handler")]
public virtual string? GetValue(string? qName);
[<Android.Runtime.Register("getValue", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetValue_Ljava_lang_String_Handler")>]
abstract member GetValue : string -> string
override this.GetValue : string -> string
Parameters
- qName
- String
The attribute name as reported by the pull parser.
Returns
The attribute value, or null if no matching attribute exists.
Implements
- Attributes
Remarks
The driver passes a null namespace to the pull parser. The default Android parser matches any namespace; a reader created by XmlReader.Create(TextReader) matches attributes with no namespace.
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
GetValue(Int32)
Look up an attribute's value by index.
[Android.Runtime.Register("getValue", "(I)Ljava/lang/String;", "GetGetValue_IHandler")]
public virtual string? GetValue(int index);
[<Android.Runtime.Register("getValue", "(I)Ljava/lang/String;", "GetGetValue_IHandler")>]
abstract member GetValue : int -> string
override this.GetValue : int -> string
Parameters
- index
- Int32
The zero-based attribute index.
Returns
The normalized attribute value. This value is never null.
Implements
- Attributes
Exceptions
The index is out of range for the default Android parser.
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.