다음을 통해 공유


FlavoredProject.IVsTrackProjectDocumentsEvents2.OnAfterRenameFiles Method

Definition

Raised after files have been moved or renamed.

 virtual int Microsoft.VisualStudio.Shell.Interop.IVsTrackProjectDocumentsEvents2.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) = Microsoft::VisualStudio::Shell::Interop::IVsTrackProjectDocumentsEvents2::OnAfterRenameFiles;
 virtual int Microsoft.VisualStudio.Shell.Interop.IVsTrackProjectDocumentsEvents2.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) = Microsoft::VisualStudio::Shell::Interop::IVsTrackProjectDocumentsEvents2::OnAfterRenameFiles;
int Microsoft.VisualStudio.Shell.Interop.IVsTrackProjectDocumentsEvents2.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);
int IVsTrackProjectDocumentsEvents2.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 Microsoft.VisualStudio.Shell.Interop.IVsTrackProjectDocumentsEvents2.OnAfterRenameFiles : int * int * Microsoft.VisualStudio.Shell.Interop.IVsProject[] * int[] * string[] * string[] * Microsoft.VisualStudio.Shell.Interop.VSRENAMEFILEFLAGS[] -> int
override this.Microsoft.VisualStudio.Shell.Interop.IVsTrackProjectDocumentsEvents2.OnAfterRenameFiles : int * int * Microsoft.VisualStudio.Shell.Interop.IVsProject[] * int[] * string[] * string[] * Microsoft.VisualStudio.Shell.Interop.VSRENAMEFILEFLAGS[] -> int
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 Implements IVsTrackProjectDocumentsEvents2.OnAfterRenameFiles

Parameters

cProjects
Int32

The number of projects in the rgpProjects array.

cFiles
Int32

The number of files affected.

rgpProjects
IVsProject[]

An array of IVsProject objects, corresponding to the projects in the solution.

rgFirstIndices
Int32[]

An array of the indices of the files.

rgszMkOldNames
String[]

An array of the old paths of the files.

rgszMkNewNames
String[]

An array of the new paths of the files.

rgFlags
VSRENAMEFILEFLAGS[]

An array of VSRENAMEFILEFLAGS. May be null.

Returns

Microsoft.VisualStudio.NativeMethods.S_OK.

Implements

Remarks

Events are filtered so that they report only those related to this project. This is not required for flavoring, but it simplifies the work the derived classes have to do when subscribing to these events.

Applies to