System.IO.DirectoryInfo.Exists Property

Gets a value indicating whether the directory exists.

Syntax

public override bool Exists { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The DirectoryInfo.Exists property returns false if any error occurs while trying to determine if the specified file exists. This can occur in situations that raise exceptions such as passing a file name with invalid characters or too many characters, a failing or missing disk, or if the caller does not have permission to read the file.

Requirements

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