HttpTransportBindingElement.ProxyAddress Özellik

Tanım

HTTP istekleri için kullanılacak ara sunucu adresini içeren bir URI alır veya ayarlar.

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

Özellik Değeri

Uri

Ara Uri sunucu adresini içeren. null varsayılan değerdir.

Öznitelikler

Örnekler

Aşağıdaki örnek, bağlamada istekler gerçekleştirirken kullanılacak bu özelliği ayarlar. Tüm istekler, olarak ayarlanmadığı BypassProxyOnLocal ve uç noktanın yerel bir uç nokta olmadığı sürece true bu ara sunucu üzerinden yönlendirilir.

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

Şunlara uygulanır