System::IO::Path::ChangeExtension method

Path::ChangeExtension method

Changes the extension in the specified file path.

static String System::IO::Path::ChangeExtension(const String &path, const String &extension)
ParameterTypeDescription
pathconst String&A file path
extensionconst String&The extension to replace the one in path with

ReturnValue

path with extension replaced with extension

See Also