GetParent()

Directory::GetParent(const String&) method

Returns a shared pointer to DirectoryInfo object representing the parent directory of the specified entity.

static DirectoryInfoPtr System::IO::Directory::GetParent(const String &path)

Arguments

ParameterTypeDescription
pathconst String&The path to the entity whose parent is to be obtained

Return Value

A shared pointer to DirectoryInfo object representing the parent directory of the entity specified by path

See Also