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 属性许可证中所述的术语使用。

适用于