GetPathRoot()

Path::GetPathRoot(const String&) method

Returns the root directory of the specified path.

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

Arguments

ParameterTypeDescription
pathconst String&The path from which to obtain the root

Return Value

The root directory of path

See Also