Share via


FileSystemInfo.Exists Property

Gets a value indicating whether the file or directory exists.

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

Syntax

public virtual abstract bool Exists { get; }

Property Value

true if the file or directory exists; otherwise, false.

Version Information

Available in the .NET Micro Framework versions 3.0, 4.0, and 4.1.

See Also

Reference

FileSystemInfo Class
FileSystemInfo Members
System.IO Namespace