語言

DiscoveryRequest.DisplayNameAttribute 屬性

定義

回傳屬性,用於系統介面服務選擇器中顯示該服務。

public string? DisplayNameAttribute { [Android.Runtime.Register("getDisplayNameAttribute", "()Ljava/lang/String;", "", ApiSince=37)] get; }
[<get: Android.Runtime.Register("getDisplayNameAttribute", "()Ljava/lang/String;", "", ApiSince=37)>]
member this.DisplayNameAttribute : string

屬性值

回傳屬性,用於系統介面服務選擇器中顯示該服務。

屬性

備註

回傳屬性,用於系統介面服務選擇器中顯示該服務。

屬性依據 NsdServiceInfo.getAttributes()。

若為空,則依照 NsdServiceInfo.getServiceName() 使用服務名稱。

Android 參考資料。android.net.nsd.DiscoveryRequest.getDisplayNameAttribute

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

適用於