C# Uri IsFile
Description
Uri IsFile
gets a value indicating whether the specified
Uri is a file URI.
Syntax
Uri.IsFile
has the following syntax.
public bool IsFile { get; }
Example
The following example creates a Uri instance and determines whether it is a file URI.
/* ww w .j av 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.IsFile);
}
}
The code above generates the following result.