Partager via


DevicePolicyManager.SetRecommendedGlobalProxy Méthode

Définition

Définissez un proxy HTTP global indépendant du réseau.

[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

Paramètres

admin
ComponentName

Auquel DeviceAdminReceiver cette requête est associée.

proxyInfo
ProxyInfo

Objet ProxyInfo définissant le nouveau proxy HTTP global. Une null valeur efface le proxy HTTP global.

Attributs

Remarques

Documentation Java pour android.app.admin.DevicePolicyManager.setRecommendedGlobalProxy(android.content.ComponentName, .*ProxyInfo).

Les parties de cette page sont des modifications basées sur le travail créé et partagé par le projet Android Open Source et utilisés en fonction des termes décrits dans la licence d’attribution Creative Commons 2.5.

S’applique à

Voir aussi