C# Uri IsLoopback
Description
Uri IsLoopback
gets whether the specified Uri references
the local host.
Syntax
Uri.IsLoopback
has the following syntax.
public bool IsLoopback { get; }
Example
The following example creates a Uri instance and determines whether it references a local host.
// w w w. j a v a 2 s .com
using System;
public class MainClass{
public static void Main(String[] argv){
Uri uriAddress2 = new Uri("file://server/filename.ext");
Console.WriteLine(uriAddress2.IsLoopback);
}
}
The code above generates the following result.