## Path::GetDirectoryName method


返回由指定路径引用的目录名称。

```cpp
static String System::IO::Path::GetDirectoryName(const String &path)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 路径 | const String\& | 指向目录的路径 |

### ReturnValue

目录的名称

## 另见

* Class [String](../../../system/string/)
* Class [Path](../)
* Namespace [System::IO](../../)
* Library [Aspose.Font for C++](../../../)
