Exists Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets a value indicating whether the file or directory exists.

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

public abstract bool Exists { get; }

Property Value

Type: System..::..Boolean
true if the file or directory exists; otherwise, false.