WSHttpBindingBase.UseDefaultWebProxy 屬性
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定值,這個值會指出是否應使用系統自動設定的 HTTP Proxy (如果有的話)。
public:
property bool UseDefaultWebProxy { bool get(); void set(bool value); };
C#
public bool UseDefaultWebProxy { get; set; }
member this.UseDefaultWebProxy : bool with get, set
Public Property UseDefaultWebProxy As Boolean
如果應使用系統自動設定的 HTTP Proxy (如果有的話),則為 true
,否則為 false
。 預設值是 true
。
這個範例會示範如何取得訊息的大小上限。
C#
bool useDefaultWebProxy =
binding1.UseDefaultWebProxy;
Dim useDefaultWebProxy = binding1.UseDefaultWebProxy
如果這個值是 true
且 ProxyAddress 不是 null
,則代表有錯誤。
產品 | 版本 |
---|---|
.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 |