Share via


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)

Syntax

'Declaration
Public ReadOnly Property IsLoopback As Boolean
public bool IsLoopback { get; }
public:
property bool IsLoopback {
    bool get ();
}
member IsLoopback : bool with get
function get IsLoopback () : boolean

Property Value

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

Remarks

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.

.NET Framework Security

See Also

Reference

Uri Class

System Namespace