IAttributeSet.GetAttributeNamespace(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳指定屬性的命名空間。
[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 所創建與分享的作品,並依授權條款所描述的使用進行修改。