共用方式為


DevicePolicyManager.SetRecommendedGlobalProxy 方法

定義

設定與網路無關的全域 HTTP Proxy。

[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 Proxy 的物件。 值 null 會清除全域 HTTP Proxy。

屬性

備註

android.app.admin.DevicePolicyManager.setRecommendedGlobalProxy(android.content.ComponentName, .*ProxyInfo)Java 檔。

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

適用於

另請參閱