Bagikan melalui


HttpTransportBindingElement.ProxyAuthenticationScheme Properti

Definisi

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;

Berlaku untuk