WebProxy.GetDefaultProxy Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Attenzione
WebProxy.GetDefaultProxy has been deprecated. Use the proxy selected for you by default.
Attenzione
This method has been deprecated. Please use the proxy selected for you by default. https://go.microsoft.com/fwlink/?linkid=14202
Attenzione
This method has been deprecated. Please use the proxy selected for you by default. http://go.microsoft.com/fwlink/?linkid=14202
Legge le impostazioni proxy non dinamiche delle opzioni Internet.
public:
static System::Net::WebProxy ^ GetDefaultProxy();
[System.Obsolete("WebProxy.GetDefaultProxy has been deprecated. Use the proxy selected for you by default.")]
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();
[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();
public static System.Net.WebProxy GetDefaultProxy();
[<System.Obsolete("WebProxy.GetDefaultProxy has been deprecated. Use the proxy selected for you by default.")>]
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
[<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
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
In .NET Core.
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.