Parent Property

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

Gets the parent directory of a specified subdirectory.

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

public DirectoryInfo Parent { get; }

Property Value

Type: System.IO..::..DirectoryInfo
The parent directory, or nullNothingnullptrunita null reference (Nothing in Visual Basic) if the path is null or if the file path denotes a root (such as "\", "C:", or * "\\server\share").