IXmlPullParser.GetAttributeName(Int32) Método

Definición

Devuelve el nombre local del atributo especificado si los espacios de nombres están habilitados o simplemente el nombre del atributo si los espacios de nombres están deshabilitados.

[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

Parámetros

index
Int32

índice de base cero del atributo

Devoluciones

nombre de atributo (nunca se devuelve null)

Atributos

Comentarios

Devuelve el nombre local del atributo especificado si los espacios de nombres están habilitados o simplemente el nombre del atributo si los espacios de nombres están deshabilitados. Produce una excepción IndexOutOfBoundsException si el índice está fuera del intervalo o el tipo de evento actual no es START_TAG.

Java documentación para org.xmlpull.v1.XmlPullParser.getAttributeName(int).

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a