System::IO::Path::GetDirectoryName method

Path::GetDirectoryName method

Returns the name of the directory referenced by the specified path.

static String System::IO::Path::GetDirectoryName(const String &path)
ParameterTypeDescription
pathconst String&A path to a directory

ReturnValue

The directory’s name

See Also