This documentation is archived and is not being maintained.

Uri.IsLoopback Property

Gets a value indicating whether the specified Uri references the local host.

[Visual Basic]
Public ReadOnly Property IsLoopback As Boolean
[C#]
public bool IsLoopback {get;}
[C++]
public: __property bool get_IsLoopback();
[JScript]
public function get IsLoopback() : Boolean;

Property Value

true if the Uri references the local host; otherwise, false.

Remarks

IsLoopback returns true if the specified Uri address is either 127.0.0.1, loopback, or localhost. All other addresses return false.

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

Uri Class | Uri Members | System Namespace

Show: