GetDirectoryRoot()

Directory::GetDirectoryRoot(const String&) method

Returns the root directory of the specified path.

static String System::IO::Directory::GetDirectoryRoot(const String &path)

Arguments

ParameterTypeDescription
pathconst String&A path from which a root directory is to be obtained

Return Value

The name of the root directory in path

See Also