This topic has not yet been rated - Rate this topic

Uri.UriSchemeFile Field

April 12, 2014

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

Namespace:  System
Assembly:  System (in System.dll)
public static readonly string UriSchemeFile

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


Uri address4 =  new Uri("file://server/filename.ext");
if (address4.Scheme == Uri.UriSchemeFile) 
    outputBlock.Text += "Uri is a file\n";


Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.