System::IO::Directory::GetDirectoryRoot 方法

Directory::GetDirectoryRoot method

返回指定路径的根目录。

static String System::IO::Directory::GetDirectoryRoot(const String &path)
ParameterType描述
路径const String&用于获取根目录的路径

ReturnValue

path 中根目录的名称

另见