## Directory::GetParent method


指定されたエンティティの親ディレクトリを表す [DirectoryInfo](../../directoryinfo/) オブジェクトへの共有ポインタを返します。

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


| パラメーター | 型 | 説明 |
| --- | --- | --- |
| パス | const String\& | 親ディレクトリを取得するエンティティへのパス |

### ReturnValue

**path** で指定されたエンティティの親ディレクトリを表す [DirectoryInfo](../../directoryinfo/) オブジェクトへの共有ポインタ

## 参照

* Typedef [DirectoryInfoPtr](../../../system/directoryinfoptr/)
* Class [String](../../../system/string/)
* Class [Directory](../)
* Namespace [System::IO](../../)
* Library [Aspose.Page for C++](../../../)
