GlobalProxySelection.GetEmptyWebProxy Metodo

Definizione

Restituisce un'istanza proxy vuota.

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

Valori restituiti

Oggetto IWebProxy che non contiene informazioni.

Commenti

Il GetEmptyWebProxy metodo restituisce un'istanza vuota IWebProxy per indicare che non viene usato alcun proxy per accedere a una risorsa Internet.

Anziché chiamare il GetEmptyWebProxy metodo , è possibile assegnare null a membri come la WebClient.Proxy proprietà , che specifica il proxy che comunica con i server remoti per conto dell'oggetto WebClient .

Si applica a