GlobalProxySelection.GetEmptyWebProxy Method ()


Returns an empty proxy instance.

Namespace:   System.Net
Assembly:  System (in System.dll)

static member GetEmptyWebProxy : unit -> IWebProxy

Return Value

Type: System.Net.IWebProxy

An IWebProxy that contains no information.

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

The following code example creates a WebRequest instance that does not use a proxy.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top