WebProxy.GetDefaultProxy Metodo

Definizione

Attenzione

This method has been deprecated. Please use the proxy selected for you by default. http://go.microsoft.com/fwlink/?linkid=14202

Attenzione

This method has been deprecated. Please use the proxy selected for you by default. https://go.microsoft.com/fwlink/?linkid=14202

Legge le impostazioni proxy non dinamiche delle opzioni Internet.

public:
 static System::Net::WebProxy ^ GetDefaultProxy();
public static System.Net.WebProxy GetDefaultProxy();
[System.Obsolete("This method has been deprecated. Please use the proxy selected for you by default. http://go.microsoft.com/fwlink/?linkid=14202")]
public static System.Net.WebProxy GetDefaultProxy();
[System.Obsolete("This method has been deprecated. Please use the proxy selected for you by default. https://go.microsoft.com/fwlink/?linkid=14202")]
public static System.Net.WebProxy GetDefaultProxy();
static member GetDefaultProxy : unit -> System.Net.WebProxy
[<System.Obsolete("This method has been deprecated. Please use the proxy selected for you by default. http://go.microsoft.com/fwlink/?linkid=14202")>]
static member GetDefaultProxy : unit -> System.Net.WebProxy
[<System.Obsolete("This method has been deprecated. Please use the proxy selected for you by default. https://go.microsoft.com/fwlink/?linkid=14202")>]
static member GetDefaultProxy : unit -> System.Net.WebProxy
Public Shared Function GetDefaultProxy () As WebProxy

Valori restituiti

WebProxy Istanza che contiene le impostazioni proxy non dinamiche dalle opzioni Internet.

Attributi

Eccezioni

Commenti

Il GetDefaultProxy metodo legge le impostazioni proxy non dinamiche dalle opzioni Internet del computer e crea un'istanza WebProxy con tali impostazioni.

Il metodo GetDefaultProxy non preleva impostazioni dinamiche generate dagli script eseguiti da Internet Explorer, da voci di configurazione automatica o da ricerche DHCP o DNS.

Le applicazioni devono usare la HttpClient.DefaultProxy proprietà anziché il GetDefaultProxy metodo .

Note

Questa proprietà non è supportata in .NET Core.

Si applica a