共用方式為


ConnectivityManager.NetworkPreference 屬性

定義

警告

deprecated

擷取目前的慣用網路類型。

[System.Obsolete("deprecated")]
public virtual Android.Net.ConnectivityType NetworkPreference { [Android.Runtime.Register("getNetworkPreference", "()I", "GetGetNetworkPreferenceHandler")] [Android.Runtime.RequiresPermission("android.permission.ACCESS_NETWORK_STATE")] get; [Android.Runtime.Register("setNetworkPreference", "(I)V", "GetSetNetworkPreference_IHandler")] set; }
[<System.Obsolete("deprecated")>]
[<get: Android.Runtime.Register("getNetworkPreference", "()I", "GetGetNetworkPreferenceHandler")>]
[<get: Android.Runtime.RequiresPermission("android.permission.ACCESS_NETWORK_STATE")>]
[<set: Android.Runtime.Register("setNetworkPreference", "(I)V", "GetSetNetworkPreference_IHandler")>]
member this.NetworkPreference : Android.Net.ConnectivityType with get, set

屬性值

屬性

備註

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於