WSHttpBindingBase.ProxyAddress 屬性
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定 HTTP Proxy 的 URI 位址。
public:
property Uri ^ ProxyAddress { Uri ^ get(); void set(Uri ^ value); };
C#
public Uri ProxyAddress { get; set; }
C#
[System.ComponentModel.TypeConverter(typeof(System.UriTypeConverter))]
public Uri ProxyAddress { get; set; }
member this.ProxyAddress : Uri with get, set
[<System.ComponentModel.TypeConverter(typeof(System.UriTypeConverter))>]
member this.ProxyAddress : Uri with get, set
Public Property ProxyAddress As Uri
當做 HTTP Proxy 之位址使用的 Uri。 預設值是 null
。
- 屬性
這個範例會示範如何取得訊息的大小上限。
C#
Uri proxyAddress =
binding1.ProxyAddress;
Dim proxyAddress As Uri = binding1.ProxyAddress
若 UseDefaultWebProxy 設定為 true
,則會忽略 ProxyAddress 的值。
產品 | 版本 |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |