Driver.GetIndex 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 |
|---|---|
| GetIndex(String) |
Looks up the index of an attribute by its parser-reported name. |
| GetIndex(String, String) |
Looks up the index of an attribute by namespace URI and parser-reported name. |
GetIndex(String)
Looks up the index of an attribute by its parser-reported name.
[Android.Runtime.Register("getIndex", "(Ljava/lang/String;)I", "GetGetIndex_Ljava_lang_String_Handler")]
public virtual int GetIndex(string? qName);
[<Android.Runtime.Register("getIndex", "(Ljava/lang/String;)I", "GetGetIndex_Ljava_lang_String_Handler")>]
abstract member GetIndex : string -> int
override this.GetIndex : string -> int
Parameters
- qName
- String
The attribute name as reported by the pull parser. When namespace processing is enabled, this is the local name without a prefix.
Returns
The index of the attribute, or -1 if it does not appear in the list.
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
GetIndex(String, String)
Looks up the index of an attribute by namespace URI and parser-reported name.
[Android.Runtime.Register("getIndex", "(Ljava/lang/String;Ljava/lang/String;)I", "GetGetIndex_Ljava_lang_String_Ljava_lang_String_Handler")]
public virtual int GetIndex(string? uri, string? localName);
[<Android.Runtime.Register("getIndex", "(Ljava/lang/String;Ljava/lang/String;)I", "GetGetIndex_Ljava_lang_String_Ljava_lang_String_Handler")>]
abstract member GetIndex : string * string -> int
override this.GetIndex : string * string -> int
Parameters
- uri
- String
The namespace URI to match exactly, or the empty string if the attribute has no namespace URI.
- localName
- String
The attribute name as reported by the pull parser.
Returns
The index of the attribute, or -1 if it does not appear in the list.
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.