WebHttpBindingElement.UseDefaultWebProxy 属性

定义

获取或设置一个值,该值指示是否应使用系统的自动配置 HTTP 代理(如果可用)。Gets or sets a value that indicates whether the auto-configured HTTP proxy of the system should be used, if available.

public:
 property bool UseDefaultWebProxy { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("useDefaultWebProxy", DefaultValue=Mono.Cecil.CustomAttributeArgument)]
public bool UseDefaultWebProxy { get; set; }
[<System.Configuration.ConfigurationProperty("useDefaultWebProxy", DefaultValue=Mono.Cecil.CustomAttributeArgument)>]
member this.UseDefaultWebProxy : bool with get, set
Public Property UseDefaultWebProxy As Boolean

属性值

Boolean

如果应使用系统的自动配置 HTTP 代理(如果可用),则为 true;否则为 falsetrue if the auto-configured HTTP proxy of the system should be used, if available; otherwise, false. 默认值为 trueThe default value is true.

属性

注解

这是由于此项为 true 以及 ProxyAddress 为非 null 而产生的一个错误。It is an error for this to be true and ProxyAddress to be non-null.

适用于