次の方法で共有


IAttributes.GetIndex Method

Definition

Overloads

GetIndex(String)

Look up the index of an attribute by XML qualified (prefixed) name.

GetIndex(String, String)

Look up the index of an attribute by Namespace name.

GetIndex(String)

Look up the index of an attribute by XML qualified (prefixed) name.

[Android.Runtime.Register("getIndex", "(Ljava/lang/String;)I", "GetGetIndex_Ljava_lang_String_Handler:Org.Xml.Sax.IAttributesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int GetIndex (string? qName);
[<Android.Runtime.Register("getIndex", "(Ljava/lang/String;)I", "GetGetIndex_Ljava_lang_String_Handler:Org.Xml.Sax.IAttributesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetIndex : string -> int

Parameters

qName
String

The qualified (prefixed) name.

Returns

The index of the attribute, or -1 if it does not appear in the list.

Attributes

Remarks

Look up the index of an attribute by XML qualified (prefixed) name.

Java documentation for org.xml.sax.Attributes.getIndex(java.lang.String).

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)

Look up the index of an attribute by Namespace name.

[Android.Runtime.Register("getIndex", "(Ljava/lang/String;Ljava/lang/String;)I", "GetGetIndex_Ljava_lang_String_Ljava_lang_String_Handler:Org.Xml.Sax.IAttributesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public 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:Org.Xml.Sax.IAttributesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetIndex : string * string -> int

Parameters

uri
String

The Namespace URI, or the empty string if the name has no Namespace URI.

localName
String

The attribute's local name.

Returns

The index of the attribute, or -1 if it does not appear in the list.

Attributes

Remarks

Look up the index of an attribute by Namespace name.

Java documentation for org.xml.sax.Attributes.getIndex(java.lang.String, java.lang.String).

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