Uri.UriSchemeFile Field

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Specifies that the URI is a pointer to a file. This field is read-only.

Namespace: System
Assembly: System (in System.dll)


Public Shared ReadOnly UriSchemeFile As String
public static readonly string UriSchemeFile


The following example creates a Uri instance and determines whether the scheme is UriSchemeFile.

Dim address4 As Uri = New Uri("file://server/filename.ext")
If address4.Scheme = Uri.UriSchemeFile Then
  outputBlock.Text &= "Uri is a file"
  outputBlock.Text &= vbCrLf
End If
Uri address4 =  new Uri("file://server/filename.ext");
if (address4.Scheme == Uri.UriSchemeFile) 
    outputBlock.Text += "Uri is a file\n";

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0


Windows Phone

See Also


Uri Class

System Namespace