This documentation is archived and is not being maintained.

WebProxy.GetDefaultProxy Method

Reads the Internet Explorer nondynamic proxy settings.

[Visual Basic]
Public Shared Function GetDefaultProxy() As WebProxy
public static WebProxy GetDefaultProxy();
public: static WebProxy* GetDefaultProxy();
public static function GetDefaultProxy() : WebProxy;

Return Value

A WebProxy instance containing the nondynamic proxy settings from Internet Explorer 5.5.


The GetDefaultProxy method reads the nondynamic proxy settings stored by Internet Explorer 5.5 and creates a WebProxy instance with those settings.

The GetDefaultProxy does not pick up any dynamic settings that are generated from script run by Internet Explorer, from automatic configuration entries, or from DHCP or DNS lookups.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

WebProxy Class | WebProxy Members | System.Net Namespace