This documentation is archived and is not being maintained.

Uri.IsFile Property

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

[Visual Basic]
Public ReadOnly Property IsFile As Boolean
public bool IsFile {get;}
public: __property bool get_IsFile();
public function get IsFile() : Boolean;

Property Value

true if the Uri is a file URI; otherwise, false.


The IsFile property is true when the Scheme property equals UriSchemeFile.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

Uri Class | Uri Members | System Namespace