IsFile Property

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.

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

public bool IsFile { get; }

Property Value

Type: System.Boolean
A Boolean value that is true if the Uri is a file URI; otherwise, false.

ExceptionCondition
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.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft