Aracılığıyla paylaş


WSDualHttpBinding.ProxyAddress Özellik

Tanım

HTTP ara sunucusunun URI adresini alır veya ayarlar.

public:
 property Uri ^ ProxyAddress { Uri ^ get(); void set(Uri ^ value); };
public Uri ProxyAddress { get; set; }
member this.ProxyAddress : Uri with get, set
Public Property ProxyAddress As Uri

Özellik Değeri

Uri

Uri HTTP ara sunucusunun adresi olarak hizmet veren bir. null varsayılan değerdir.

Örnekler

Aşağıdaki örnekte HTTP ara sunucusunun adresinin nasıl belirtilmesi gösterilmektedir.

string proxyAddressString = "http://localhost:5049";
Uri proxyBaseAddressUri = new Uri(proxyAddressString);
binding.ProxyAddress = proxyBaseAddressUri;
Dim proxyAddressString As String = "http://localhost:5049"
Dim proxyBaseAddressUri As New Uri(proxyAddressString)
binding.ProxyAddress = proxyBaseAddressUri

Açıklamalar

UseDefaultWebProxy olarak ayarlanırsa truedeğerinin ProxyAddress değeri yoksayılır.

Şunlara uygulanır