## Directory::GetDirectoryRoot method


返回指定路径的根目录。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 路径 | const String\& | 要获取根目录的路径 |

### ReturnValue

**path** 中根目录的名称

## 另见

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