Uri.IsFile Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets a value indicating whether the specified Uri is a file URI.
Assembly: System (in System.dll)
Property Value
Type: System.BooleanA Boolean value that is true if the Uri is a file URI; otherwise, false.
| Exception | Condition |
|---|---|
| InvalidOperationException | This instance represents a relative URI, and this property is valid only for absolute URIs. |
The IsFile property is true when the Scheme property equals UriSchemeFile.
Show: