WebProxy.GetDefaultProxy Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Figyelemfelhívás
WebProxy.GetDefaultProxy has been deprecated. Use the proxy selected for you by default.
Figyelemfelhívás
This method has been deprecated. Please use the proxy selected for you by default. https://go.microsoft.com/fwlink/?linkid=14202
Figyelemfelhívás
This method has been deprecated. Please use the proxy selected for you by default. http://go.microsoft.com/fwlink/?linkid=14202
Beolvassa az internetbeállítások nemdinamikus proxybeállításait.
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
Válaszok
Egy WebProxy olyan példány, amely az internetes beállítások nemdinamikus proxybeállítását tartalmazza.
- Attribútumok
Kivételek
A .NET Core-on.
Megjegyzések
A GetDefaultProxy metódus beolvassa a nemdinamikus proxybeállításokat a számítógép internetes beállításaiból, és létrehoz egy példányt WebProxy ezekkel a beállításokkal.
A GetDefaultProxy metódus nem veszi fel a Internet Explorer által futtatott szkriptekből, automatikus konfigurációs bejegyzésekből vagy DHCP- vagy DNS-keresésekből létrehozott dinamikus beállításokat.
Az alkalmazásoknak a metódus helyett a HttpClient.DefaultProxy tulajdonságot kell használniuk GetDefaultProxy .
Note
Ez a tulajdonság nem támogatott a .NET Core-on.