Bagikan melalui


WebClient.Proxy Properti

Definisi

Mendapatkan atau menyetel proksi yang digunakan oleh objek ini WebClient .

public:
 property System::Net::IWebProxy ^ Proxy { System::Net::IWebProxy ^ get(); void set(System::Net::IWebProxy ^ value); };
public System.Net.IWebProxy? Proxy { get; set; }
public System.Net.IWebProxy Proxy { get; set; }
member this.Proxy : System.Net.IWebProxy with get, set
Public Property Proxy As IWebProxy

Nilai Properti

Instans yang IWebProxy digunakan untuk mengirim permintaan.

Keterangan

Properti Proxy mengidentifikasi IWebProxy instans yang berkomunikasi dengan server jarak jauh atas nama objek ini WebClient . Proksi diatur oleh sistem menggunakan file konfigurasi dan pengaturan Jaringan Area Lokal. Untuk menentukan bahwa tidak ada proksi yang harus digunakan, atur properti ke Proxynull.

Untuk informasi tentang deteksi proksi otomatis, lihat Deteksi Proksi Otomatis.

Berlaku untuk

Lihat juga