HttpClientHandler.UseProxy 属性

定义

获取或设置一个值,该值表示处理程序是否对请求使用代理。

public:
 property bool UseProxy { bool get(); void set(bool value); };
public bool UseProxy { get; set; }
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public bool UseProxy { get; set; }
member this.UseProxy : bool with get, set
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
member this.UseProxy : bool with get, set
Public Property UseProxy As Boolean

属性值

如果处理程序应对请求使用代理,则为 true;否则为 false。 默认值是 true

属性

适用于