Condividi tramite


HttpTransportBindingElement.ProxyAuthenticationScheme Proprietà

Definizione

Ottiene o imposta lo schema di autenticazione utilizzato per autenticare le 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à

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

Esempio

Nell'esempio seguente questa proprietà viene impostata da utilizzare quando si inviano richieste al proxy specificato nella ProxyAddress proprietà .

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

Si applica a