Share via


HttpTransportBindingElement.ProxyAddress プロパティ

定義

HTTP 要求に使用するプロキシのアドレスを格納する URI を取得または設定します。

public:
 property Uri ^ ProxyAddress { Uri ^ get(); void set(Uri ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.UriTypeConverter))]
public Uri ProxyAddress { get; set; }
public Uri ProxyAddress { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.UriTypeConverter))>]
member this.ProxyAddress : Uri with get, set
member this.ProxyAddress : Uri with get, set
Public Property ProxyAddress As Uri

プロパティ値

Uri

プロキシのアドレスが格納されている Uri。 既定値は null です。

属性

次の例では、バインディングで要求を実行するときにこのプロパティを使用するよう設定しています。 BypassProxyOnLocaltrue に設定されておらず、エンドポイントがローカル エンドポイントでない場合は、すべての要求がこのプロキシを経由します。

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

適用対象