HttpClientHandler.UseProxy 属性

定义

获取或设置一个值,该值表示处理程序是否对请求使用代理。Gets or sets a value that indicates whether the handler uses a proxy for requests.

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

属性值

如果处理程序应对请求使用代理,则为 true;否则为 falsetrue if the handler should use a proxy for requests; otherwise false. 默认值为 trueThe default value is true.

适用于