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
public bool IsLoopback {get;}
public: __property bool get_IsLoopback();
public function get IsLoopback() : Boolean;

Property Value

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


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


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