Directory Property

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

Gets an instance of the parent directory.

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

public DirectoryInfo Directory { get; }

Property Value

Type: System.IO..::..DirectoryInfo
A DirectoryInfo object representing the parent directory of this file.

To get the parent directory as a string, use the DirectoryName property.

Show: