## Path::GetPathRoot method


返回指定路径的根目录。

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


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

### ReturnValue

**path** 的根目录

## 另见

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