Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HttpTransportBindingElement::UseDefaultWebProxy Property

 

Gets or sets a value that indicates whether the machine-wide proxy settings are used rather than the user specific settings.

Namespace:   System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public:
property bool UseDefaultWebProxy {
	bool get();
	void set(bool value);
}

Property Value

Type: System::Boolean

true if the machine-wide proxy settings are used; otherwise, false. The default is true.

The following example causes user-specific proxy settings to be used.

[C#]

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

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft