HttpTransportBindingElement.UseDefaultWebProxy 属性

定义

获取或设置一个值,该值指示是否使用计算机范围的代理设置,而不是用户特定的设置。

public:
 property bool UseDefaultWebProxy { bool get(); void set(bool value); };
public bool UseDefaultWebProxy { get; set; }
member this.UseDefaultWebProxy : bool with get, set
Public Property UseDefaultWebProxy As Boolean

属性值

true 如果使用计算机范围的代理设置,则为 ;否则,为 false. 默认值为 true

示例

以下示例导致使用特定于用户的代理设置。

HttpTransportBindingElement httpBinding = new HttpTransportBindingElement();
httpBinding.UseDefaultWebProxy = false;

适用于