HttpTransportBindingElement.ProxyAuthenticationScheme Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Mendapatkan atau mengatur skema autentikasi yang digunakan untuk mengautentikasi permintaan klien yang diproses oleh proksi HTTP.
public:
property System::Net::AuthenticationSchemes ProxyAuthenticationScheme { System::Net::AuthenticationSchemes get(); void set(System::Net::AuthenticationSchemes value); };
public System.Net.AuthenticationSchemes ProxyAuthenticationScheme { get; set; }
member this.ProxyAuthenticationScheme : System.Net.AuthenticationSchemes with get, set
Public Property ProxyAuthenticationScheme As AuthenticationSchemes
Nilai Properti
Enumerasi AuthenticationSchemes yang menentukan protokol yang digunakan untuk autentikasi klien pada proksi. Defaultnya adalah Anonymous.
Contoh
Contoh berikut mengatur properti ini untuk digunakan saat mengirim permintaan ke proksi yang ditentukan dalam ProxyAddress properti .
HttpTransportBindingElement httpBinding = new HttpTransportBindingElement();
httpBinding.ProxyAddress = new Uri(http://proxyserver);
httpBinding.ProxyAuthenticationScheme = AuthenticationSchemes.Digest;