HttpTransportBindingElement.ProxyAuthenticationScheme Proprietà

Definizione

Ottiene o imposta lo schema di autenticazione utilizzato per autenticare richieste client elaborate da 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

Valore della proprietà

AuthenticationSchemes

Enumerazione AuthenticationSchemes che specifica i protocolli utilizzati per l'autenticazione del client nel proxy. Il valore predefinito è Anonymous.

Esempio

Nell'esempio seguente questa proprietà viene impostata per essere utilizzata durante l'invio di richieste al proxy specificato nella proprietà ProxyAddress.

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

Si applica a