DevicePolicyManager.SetRecommendedGlobalProxy 方法

定义

设置独立于网络的全局 HTTP 代理。

[Android.Runtime.Register("setRecommendedGlobalProxy", "(Landroid/content/ComponentName;Landroid/net/ProxyInfo;)V", "GetSetRecommendedGlobalProxy_Landroid_content_ComponentName_Landroid_net_ProxyInfo_Handler")]
public virtual void SetRecommendedGlobalProxy (Android.Content.ComponentName admin, Android.Net.ProxyInfo? proxyInfo);
[<Android.Runtime.Register("setRecommendedGlobalProxy", "(Landroid/content/ComponentName;Landroid/net/ProxyInfo;)V", "GetSetRecommendedGlobalProxy_Landroid_content_ComponentName_Landroid_net_ProxyInfo_Handler")>]
abstract member SetRecommendedGlobalProxy : Android.Content.ComponentName * Android.Net.ProxyInfo -> unit
override this.SetRecommendedGlobalProxy : Android.Content.ComponentName * Android.Net.ProxyInfo -> unit

参数

admin
ComponentName

DeviceAdminReceiver此请求与此请求相关联。

proxyInfo
ProxyInfo

ProxyInfo定义新全局 HTTP 代理的对象。 值 null 将清除全局 HTTP 代理。

属性

注解

适用于 . 的 android.app.admin.DevicePolicyManager.setRecommendedGlobalProxy(android.content.ComponentName, .*ProxyInfo)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于

另请参阅