Export (0) Print
Expand All

WebProxy.GetDefaultProxy Method

Reads the Internet Explorer nondynamic proxy settings.

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

Return Value

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

Remarks

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.

Requirements

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

Show:
© 2014 Microsoft