Share via


IVsTrackProjectDocumentsEvents2.OnAfterRenameFiles Method

Definition

This method notifies the client when files have been renamed in the project.

public:
 int OnAfterRenameFiles(int cProjects, int cFiles, cli::array <Microsoft::VisualStudio::Shell::Interop::IVsProject ^> ^ rgpProjects, cli::array <int> ^ rgFirstIndices, cli::array <System::String ^> ^ rgszMkOldNames, cli::array <System::String ^> ^ rgszMkNewNames, cli::array <Microsoft::VisualStudio::Shell::Interop::VSRENAMEFILEFLAGS> ^ rgFlags);
public:
 int OnAfterRenameFiles(int cProjects, int cFiles, Platform::Array <Microsoft::VisualStudio::Shell::Interop::IVsProject ^> ^ rgpProjects, Platform::Array <int> ^ rgFirstIndices, Platform::Array <Platform::String ^> ^ rgszMkOldNames, Platform::Array <Platform::String ^> ^ rgszMkNewNames, Platform::Array <Microsoft::VisualStudio::Shell::Interop::VSRENAMEFILEFLAGS> ^ rgFlags);
int OnAfterRenameFiles(int cProjects, int cFiles, std::Array <Microsoft::VisualStudio::Shell::Interop::IVsProject const &> const & rgpProjects, std::Array <int> const & rgFirstIndices, std::Array <std::wstring const &> const & rgszMkOldNames, std::Array <std::wstring const &> const & rgszMkNewNames, std::Array <Microsoft::VisualStudio::Shell::Interop::VSRENAMEFILEFLAGS> const & rgFlags);
public int OnAfterRenameFiles (int cProjects, int cFiles, Microsoft.VisualStudio.Shell.Interop.IVsProject[] rgpProjects, int[] rgFirstIndices, string[] rgszMkOldNames, string[] rgszMkNewNames, Microsoft.VisualStudio.Shell.Interop.VSRENAMEFILEFLAGS[] rgFlags);
abstract member OnAfterRenameFiles : int * int * Microsoft.VisualStudio.Shell.Interop.IVsProject[] * int[] * string[] * string[] * Microsoft.VisualStudio.Shell.Interop.VSRENAMEFILEFLAGS[] -> int
Public Function OnAfterRenameFiles (cProjects As Integer, cFiles As Integer, rgpProjects As IVsProject(), rgFirstIndices As Integer(), rgszMkOldNames As String(), rgszMkNewNames As String(), rgFlags As VSRENAMEFILEFLAGS()) As Integer

Parameters

cProjects
Int32

[in] Number of projects in which files have been renamed.

cFiles
Int32

[in] Number of files renamed.

rgpProjects
IVsProject[]

[in] Array of projects in which files were renamed.

rgFirstIndices
Int32[]

[in] Array of first indices identifying which project each file belongs to. For more information, see IVsTrackProjectDocumentsEvents2.

rgszMkOldNames
String[]

[in] Array of paths for the old file names.

rgszMkNewNames
String[]

[in] Array of paths for the new file names.

rgFlags
VSRENAMEFILEFLAGS[]

[in] Array of flags. 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 IVsTrackProjectDocumentsEvents2.idl

HRESULT IVsTrackProjectDocumentsEvents2::OnAfterRenameFiles(  
   [in] int cProjects,  
   [in] int cFiles,  
   [in, size_is(cProjects)] IVsProject *rgpProjects[],  
   [in, size_is(cProjects)] const int rgFirstIndices[],  
   [in, size_is(cFiles)] const LPCOLESTR rgszMkOldNames[],  
   [in, size_is(cFiles)] const LPCOLESTR rgszMkNewNames[],  
   [in, size_is(cFiles)] const VSRENAMEFILEFLAGS rgflags[]  
);  

Applies to