Share via


HttpTransportBindingElement.ProxyAuthenticationScheme Propiedad

Definición

Obtiene o establece el esquema de autenticación usado para autenticar solicitudes de cliente que son procesadas por un proxy 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

Valor de propiedad

AuthenticationSchemes

La enumeración AuthenticationSchemes que especifica los protocolos usados para la autenticación del cliente en el proxy. De manera predeterminada, es Anonymous.

Ejemplos

El ejemplo siguiente establece esta propiedad para utilizarla al enviar las solicitudes al proxy especificado en la propiedad ProxyAddress.

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

Se aplica a