FlavoredProject.IVsTrackProjectDocumentsEvents2.OnAfterRenameDirectories Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Raised after a directory has been moved or renamed.
virtual int Microsoft.VisualStudio.Shell.Interop.IVsTrackProjectDocumentsEvents2.OnAfterRenameDirectories(int cProjects, int cDirs, 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::VSRENAMEDIRECTORYFLAGS> ^ rgFlags) = Microsoft::VisualStudio::Shell::Interop::IVsTrackProjectDocumentsEvents2::OnAfterRenameDirectories;
virtual int Microsoft.VisualStudio.Shell.Interop.IVsTrackProjectDocumentsEvents2.OnAfterRenameDirectories(int cProjects, int cDirs, 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::VSRENAMEDIRECTORYFLAGS> ^ rgFlags) = Microsoft::VisualStudio::Shell::Interop::IVsTrackProjectDocumentsEvents2::OnAfterRenameDirectories;
int Microsoft.VisualStudio.Shell.Interop.IVsTrackProjectDocumentsEvents2.OnAfterRenameDirectories(int cProjects, int cDirs, 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::VSRENAMEDIRECTORYFLAGS> const & rgFlags);
int IVsTrackProjectDocumentsEvents2.OnAfterRenameDirectories (int cProjects, int cDirs, Microsoft.VisualStudio.Shell.Interop.IVsProject[] rgpProjects, int[] rgFirstIndices, string[] rgszMkOldNames, string[] rgszMkNewNames, Microsoft.VisualStudio.Shell.Interop.VSRENAMEDIRECTORYFLAGS[] rgFlags);
abstract member Microsoft.VisualStudio.Shell.Interop.IVsTrackProjectDocumentsEvents2.OnAfterRenameDirectories : int * int * Microsoft.VisualStudio.Shell.Interop.IVsProject[] * int[] * string[] * string[] * Microsoft.VisualStudio.Shell.Interop.VSRENAMEDIRECTORYFLAGS[] -> int
override this.Microsoft.VisualStudio.Shell.Interop.IVsTrackProjectDocumentsEvents2.OnAfterRenameDirectories : int * int * Microsoft.VisualStudio.Shell.Interop.IVsProject[] * int[] * string[] * string[] * Microsoft.VisualStudio.Shell.Interop.VSRENAMEDIRECTORYFLAGS[] -> int
Function OnAfterRenameDirectories (cProjects As Integer, cDirs As Integer, rgpProjects As IVsProject(), rgFirstIndices As Integer(), rgszMkOldNames As String(), rgszMkNewNames As String(), rgFlags As VSRENAMEDIRECTORYFLAGS()) As Integer Implements IVsTrackProjectDocumentsEvents2.OnAfterRenameDirectories
Parameters
- cProjects
- Int32
The number of projects in the rgpProjects
array.
- cDirs
- Int32
The number of directories affected.
- rgpProjects
- IVsProject[]
An array of IVsProject objects, corresponding to the projects in the solution.
- rgFirstIndices
- Int32[]
An array of indices of the directories affected.
- rgszMkOldNames
- String[]
An array of the old paths of the directories.
- rgszMkNewNames
- String[]
An array of the new paths of the directories.
- rgFlags
- VSRENAMEDIRECTORYFLAGS[]
An array of VSRENAMEDIRECTORYFLAGS. 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.