Share via


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)

Syntax

'Declaration
Public MustOverride ReadOnly Property Exists As Boolean
public abstract bool Exists { get; }
public:
virtual property bool Exists {
    bool get () abstract;
}
abstract Exists : bool with get
abstract function get Exists () : boolean

Property Value

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

.NET Framework Security

See Also

Reference

FileSystemInfo Class

System.IO Namespace