WebProxy.GetDefaultProxy Metode

Definisi

Perhatian

WebProxy.GetDefaultProxy has been deprecated. Use the proxy selected for you by default.

Perhatian

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

Perhatian

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

Membaca pengaturan proksi nondinamik opsi 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

Mengembalikan

WebProxy Instans yang berisi pengaturan proksi nondinamik dari opsi Internet.

Atribut

Pengecualian

Keterangan

Metode ini GetDefaultProxy membaca pengaturan proksi nondinamik dari opsi Internet komputer dan membuat WebProxy instans dengan pengaturan tersebut.

Metode GetDefaultProxy tidak mengambil pengaturan dinamis apa pun yang dihasilkan dari skrip yang dijalankan oleh Internet Explorer, dari entri konfigurasi otomatis, atau dari pencarian DHCP atau DNS.

Aplikasi harus menggunakan HttpClient.DefaultProxy properti alih-alih GetDefaultProxy metode .

Note

Properti ini tidak didukung pada .NET Core.

Berlaku untuk