Uri.IsFile Property gets a value indicating whether the specified Uri is a file URI.
Imports System.IO
Imports System.Net
Imports System.Text
publicclass MainClass
Shared Sub Main()
Dim uriAddress2 As New Uri("file://server/filename.ext")
Console.WriteLine(uriAddress2.LocalPath)
Console.WriteLine(uriAddress2.IsUnc)
Console.WriteLine(uriAddress2.IsLoopback)
Console.WriteLine(uriAddress2.IsFile)
End Sub
End Class