Edit

Share via


GlobalProxySelection.GetEmptyWebProxy Method

Definition

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