Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

GlobalProxySelection.GetEmptyWebProxy Method

Definition

Namespace:
System.Net
Assemblies:
netstandard.dll, System.Net.Requests.dll
Assembly:
System.Net.Requests.dll
Assembly:
System.dll
Assembly:
netstandard.dll
Source:
GlobalProxySelection.cs
Source:
GlobalProxySelection.cs
Source:
GlobalProxySelection.cs
Source:
GlobalProxySelection.cs
Source:
GlobalProxySelection.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Returns an empty proxy instance.

public:
 static System::Net::IWebProxy ^ GetEmptyWebProxy();
public static System.Net.IWebProxy GetEmptyWebProxy();
static member GetEmptyWebProxy : unit -> System.Net.IWebProxy
Public Shared Function GetEmptyWebProxy () As IWebProxy

Returns

An IWebProxy that contains no information.

Remarks

The GetEmptyWebProxy method returns a blank IWebProxy instance to indicate that no proxy is used to access an Internet resource.

Instead of calling the GetEmptyWebProxy method, you can assign null to members such as the WebClient.Proxy property, which specifies the proxy that communicates with remote servers on behalf of the WebClient object.

Applies to


Feedback

Was this page helpful?