GlobalProxySelection.GetEmptyWebProxy Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Retourne une instance proxy vide.
public:
static System::Net::IWebProxy ^ GetEmptyWebProxy();
public static System.Net.IWebProxy GetEmptyWebProxy();
static member GetEmptyWebProxy : unit -> System.Net.IWebProxy
Public Shared Function GetEmptyWebProxy () As IWebProxy
Retours
Qui IWebProxy ne contient aucune information.
Remarques
La GetEmptyWebProxy méthode retourne une instance vide IWebProxy pour indiquer qu’aucun proxy n’est utilisé pour accéder à une ressource Internet.
Au lieu d’appeler la GetEmptyWebProxy méthode, vous pouvez affecter null des membres tels que la WebClient.Proxy propriété, qui spécifie le proxy qui communique avec des serveurs distants pour le compte de l’objet WebClient .