語言

IAttributeSet.GetAttributeNamespace(Int32) 方法

定義

回傳指定屬性的命名空間。

[Android.Runtime.Register("getAttributeNamespace", "(I)Ljava/lang/String;", "GetGetAttributeNamespace_IHandler:Android.Util.IAttributeSet, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=28)]
public virtual string? GetAttributeNamespace(int index);
[<Android.Runtime.Register("getAttributeNamespace", "(I)Ljava/lang/String;", "GetGetAttributeNamespace_IHandler:Android.Util.IAttributeSet, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=28)>]
abstract member GetAttributeNamespace : int -> string
override this.GetAttributeNamespace : int -> string

參數

index
Int32

目標屬性的索引,0...count-1。

傳回

包含屬性命名空間的字串,若找不到該屬性則為空字串。

屬性

備註

回傳指定屬性的命名空間。

另 XmlPullParser#getAttributeNamespace XmlPullParser.getAttributeNamespace()見 ,此方法在解析編譯後的 XML 檔案時對應。

Java 文件 android.util.AttributeSet.getAttributeNamespace(int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於