Udostępnij za pośrednictwem


IXmlPullParser.GetAttributeName(Int32) Method

Definition

Returns the local name of the specified attribute if namespaces are enabled or just attribute name if namespaces are disabled.

[Android.Runtime.Register("getAttributeName", "(I)Ljava/lang/String;", "GetGetAttributeName_IHandler:Org.XmlPull.V1.IXmlPullParserInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public string? GetAttributeName (int index);
[<Android.Runtime.Register("getAttributeName", "(I)Ljava/lang/String;", "GetGetAttributeName_IHandler:Org.XmlPull.V1.IXmlPullParserInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetAttributeName : int -> string

Parameters

index
Int32

zero-based index of attribute

Returns

attribute name (null is never returned)

Attributes

Remarks

Returns the local name of the specified attribute if namespaces are enabled or just attribute name if namespaces are disabled. Throws an IndexOutOfBoundsException if the index is out of range or current event type is not START_TAG.

Java documentation for org.xmlpull.v1.XmlPullParser.getAttributeName(int).

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