WebProxy Constructor ()

 
System_CAPS_noteNote

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)

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.

public static WebProxy CreateProxy()
{
    return new WebProxy();
}

.NET Framework
Available since 1.1
Return to top
Show: