System::IO::Path::IsPathRooted 方法

Path::IsPathRooted method

确定指定的路径是否包含根目录。

static bool System::IO::Path::IsPathRooted(const String &path)
ParameterType描述
路径const String&要检查的路径

ReturnValue

如果 path 包含根目录则为 true,否则为 false

另见