NsdServiceInfo.Attributes 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將屬性以字串鍵到位元組值的映射形式取得。
public System.Collections.Generic.IDictionary<string,byte[]>? Attributes { [Android.Runtime.Register("getAttributes", "()Ljava/util/Map;", "")] get; }
[<get: Android.Runtime.Register("getAttributes", "()Ljava/util/Map;", "")>]
member this.Attributes : System.Collections.Generic.IDictionary<string, byte[]>
屬性值
服務 DNS-SD TXT 屬性,包含字串鍵和位元組陣列值。 使用 SetAttribute(String, String) 和 RemoveAttribute(String) 來更改屬性。
- 屬性
備註
將屬性以字串鍵到位元組值的映射形式取得。 屬性映射僅適用於已解析的服務。
回傳的地圖無法修改;必須透過 #setAttribute 和 #removeAttribute進行變更。
Java 文件 android.net.nsd.NsdServiceInfo.getAttributes()。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。