System::IO::Path::GetExtension method

Path::GetExtension method

Returns the extension of the file referenced by the specified path.

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

ReturnValue

The extension of the file

See Also