Uri.UriSchemeFile Field specifies that the URI is a pointer to a file.
Imports System.IO
Imports System.Net
Imports System.Text
publicclass MainClass
Shared Sub Main()
Dim address2 As New Uri("file://server/filename.ext")
If address2.Scheme = Uri.UriSchemeFile Then
Console.WriteLine("Uri is a file")
End If
End Sub
End Class