WebProxy Constructor ()

 

Initializes an empty instance of the WebProxy class.

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

public:
WebProxy()

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
Show: