Compartir vía


HttpTransportBindingElement.ProxyAuthenticationScheme Propiedad

Definición

Obtiene o establece el esquema de autenticación usado para autenticar las solicitudes de cliente que procesa 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

Enumeración AuthenticationSchemes que especifica los protocolos usados para la autenticación de cliente en el proxy. El valor predeterminado es Anonymous.

Ejemplos

En el ejemplo siguiente se establece esta propiedad que se usará al enviar solicitudes al proxy especificado en la ProxyAddress propiedad .

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

Se aplica a