Share via


DirectoryInfo.Parent Property

Gets the parent directory of a specified subdirectory.

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

Syntax

public DirectoryInfo Parent { get; }

Property Value

The parent directory, or null reference if the path is null or if the file path denotes a root (such as "\", "C:", or * "\\server\share").

Version Information

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

See Also

Reference

DirectoryInfo Class
DirectoryInfo Members
System.IO Namespace