Uri.IsFile Property

July 28, 2014

Gets a value indicating whether the specified Uri is a file URI.

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

'Declaration
Public ReadOnly Property IsFile As Boolean

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:
© 2014 Microsoft