HttpTransportBindingElement.ProxyAuthenticationScheme Egenskap

Definition

Hämtar eller anger det autentiseringsschema som används för att autentisera klientbegäranden som bearbetas av en HTTP-proxy.

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

Egenskapsvärde

Uppräkningen AuthenticationSchemes som anger de protokoll som används för klientautentisering på proxyn. Standardvärdet är Anonymous.

Exempel

I följande exempel anges den här egenskapen som ska användas när begäranden skickas till den proxy som anges i egenskapen ProxyAddress .

HttpTransportBindingElement httpBinding = new HttpTransportBindingElement();
httpBinding.ProxyAddress = new Uri(http://proxyserver);
httpBinding.ProxyAuthenticationScheme = AuthenticationSchemes.Digest;

Gäller för