Share via


HttpTransportBindingElement.ProxyAuthenticationScheme プロパティ

定義

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

プロパティ値

プロキシでのクライアント認証に使用するプロトコルを指定する AuthenticationSchemes 列挙体。 既定値は、Anonymous です。

次の例では、ProxyAddress プロパティで指定されているプロキシに要求を送信するときに、このプロパティを使用するよう設定しています。

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

適用対象