GetExtension()

Path::GetExtension(const String&) method

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

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

Arguments

ParameterTypeDescription
pathconst String&A path to a file

Return Value

The extension of the file

See Also