System.Uri.IsFile Property

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

Syntax

public bool IsFile { get; }

Value

true if the resource identified by the current Uri is a file; otherwise, false .

Remarks

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

Requirements

Namespace: System
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0