## Path::GetPathRoot method


Returns the root directory of the specified path.

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


| Parameter | Type | Description |
| --- | --- | --- |
| path | const String\& | The path from which to obtain the root |

### ReturnValue

The root directory of **path**

## See Also

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