次の方法で共有


IXmlPullParser.GetAttributePrefix(Int32) Method

Definition

Returns the prefix of the specified attribute Returns null if the element has no prefix.

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

Parameters

index
Int32

zero-based index of attribute

Returns

attribute prefix or null if namespaces processing is not enabled.

Attributes

Remarks

Returns the prefix of the specified attribute Returns null if the element has no prefix. If namespaces are disabled it will always return null. 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.getAttributePrefix(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