IVsTrackProjectDocuments2.OnAfterRenameFiles Method

Definition

This method is called by a project after files have been renamed in the project.

C++/CX
public:
 int OnAfterRenameFiles(Microsoft::VisualStudio::Shell::Interop::IVsProject ^ pProject, int cFiles, Platform::Array <Platform::String ^> ^ rgszMkOldNames, Platform::Array <Platform::String ^> ^ rgszMkNewNames, Platform::Array <Microsoft::VisualStudio::Shell::Interop::VSRENAMEFILEFLAGS> ^ rgFlags);

Parameters

pProject
IVsProject

[in] Project containing the files that were renamed.

cFiles
Int32

[in] Number of files that were renamed.

rgszMkOldNames
String[]

[in] Array of paths for the old files' names.

rgszMkNewNames
String[]

[in] Array of paths for the new files' names.

rgFlags
VSRENAMEFILEFLAGS[]

[in] For a list of rgflags values, see VSRENAMEFILEFLAGS.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From IVsTrackProjectDocuments2.idl

cpp#
HRESULT IVsTrackProjectDocuments2::OnAfterRenameFiles(  
   [in] IVsProject *pProject,  
   [in] int cFiles,  
   [in, size_is(cFiles)] const LPCOLESTR rgszMkOldNames[],  
   [in, size_is(cFiles)] const LPCOLESTR rgszMkNewNames[],  
   [in, size_is(cFiles)] const VSRENAMEFILEFLAGS rgflags[]  
);  

The project calls this method after it has renamed files to notify the environment that the files have been renamed.

Applies to

Proizvod Verzije
Visual Studio SDK 2015, 2017, 2019, 2022