C# Uri IsUnc
Description
Uri IsUnc
gets whether the specified Uri is a universal
naming convention (UNC) path.
Syntax
Uri.IsUnc
has the following syntax.
public bool IsUnc { get; }
Example
The following example creates a Uri instance and determines whether it is a UNC path.
/*from w w w . ja v a2 s . c o m*/
using System;
public class MainClass{
public static void Main(String[] argv){
Uri uriAddress2 = new Uri("file://server/filename.ext");
Console.WriteLine(uriAddress2.IsUnc );
}
}
The code above generates the following result.