Compartilhar via


PathUtil.IsRoot(String) Method

Definition

Determines if the given path represents a root directory.

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

Parameters

path
String

First path to compare

Returns

True if path is a root, false if it is not.

Applies to