PathUtil.IsRoot(String) 方法

定义

确定给定路径是否表示根目录。

public:
 static bool IsRoot(System::String ^ path);
public:
 static bool IsRoot(Platform::String ^ path);
 static bool IsRoot(std::wstring const & path);
public static bool IsRoot (string path);
static member IsRoot : string -> bool
Public Function IsRoot (path As String) As Boolean

参数

path
String

要比较的第一个路径

返回

Boolean

如果 path 是根,则为 True; 否则为 false。

适用于