WebProxy Constructor ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes an empty instance of the WebProxy class.

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


The default constructor initializes an empty instance of the WebProxy class with the Address property set to null.

When the Address property is null, the IsBypassed method returns true and the GetProxy method returns the destination address.

The following code example demonstrates calling this constructor.

WebProxy^ CreateProxy()
   return gcnew WebProxy;

.NET Framework
Available since 1.1
Return to top