IXmlPullParser.GetAttributeName(Int32) Método

Definição

Retorna o nome local do atributo especificado se os namespaces estiverem habilitados ou apenas o nome do atributo se os namespaces estiverem desabilitados.

[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 atributo baseado em zero

Retornos

Nome do atributo (null nunca é retornado)

Atributos

Comentários

Retorna o nome local do atributo especificado se os namespaces estiverem habilitados ou apenas o nome do atributo se os namespaces estiverem desabilitados. Lança um IndexOutOfBoundsException se o índice estiver fora do intervalo ou o tipo de evento atual não estiver START_TAG.

Documentação Java para org.xmlpull.v1.XmlPullParser.getAttributeName(int).

Partes desta página são modificações baseadas no trabalho criado e compartilhado pelo Android Open Source Project e usado de acordo com os termos descritos na Creative Commons 2.5 Attribution License.

Aplica-se a