## Directory::GetParent method


Returns a shared pointer to [DirectoryInfo](../../directoryinfo/) object representing the parent directory of the specified entity.

```cpp
static DirectoryInfoPtr System::IO::Directory::GetParent(const String &path)
```


| Parameter | Type | Description |
| --- | --- | --- |
| path | const String\& | The path to the entity whose parent is to be obtained |

### ReturnValue

A shared pointer to [DirectoryInfo](../../directoryinfo/) object representing the parent directory of the entity specified by **path**

## See Also

* Typedef [DirectoryInfoPtr](../../../system/directoryinfoptr/)
* Class [String](../../../system/string/)
* Class [Directory](../)
* Namespace [System::IO](../../)
* Library [Aspose.PDF for C++](../../../)
