DirectoryInfoExists Property |
Gets a value indicating whether the directory exists.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public override bool Exists { get; }
Public Overrides ReadOnly Property Exists As Boolean
Get
public:
virtual property bool Exists {
bool get () override;
}
abstract Exists : bool with get
override Exists : bool with get
Property Value
Type:
Boolean if the directory exists; otherwise,
.
Remarks The Exists property returns if any error occurs while trying to determine if the
specified directory exists.
This can occur in situations that raise exceptions such as passing a directory name with invalid characters or too many
characters,
a failing or missing disk, or if the caller does not have permission to read the directory.
See Also