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 in any namespace. |
| 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, or null to match any namespace.
- 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
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 in any namespace.
[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. Namespace is not considered.
Returns
The attribute value, or null if no matching attribute exists.
Implements
- Attributes
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
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 or the current event is not a start tag.
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.