ChangeExtension()

Path::ChangeExtension(const String&, const String&) method

Changes the extension in the specified file path.

static String System::IO::Path::ChangeExtension(const String &path, const String &extension)

Arguments

ParameterTypeDescription
pathconst String&A file path
extensionconst String&The extension to replace the one in path with

Return Value

path with extension replaced with extension

See Also