IsLoopback Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets whether the specified Uri references the local host.

Namespace:  System
Assembly:  System.Http (in System.Http.dll)

'Declaration
Public ReadOnly Property IsLoopback As Boolean

Property Value

Type: System..::..Boolean
A Boolean value that is true if this Uri references the local host; otherwise, false.

IsLoopback returns true if the URI specified when this instance was created was 127.0.0.1, loopback, or localhost, or if the URI did not specify host information (for example, file:///c:Dir/file.txt). All other URIs return false.

Show: