IVsTrackProjectDocumentsEvents2.OnAfterRenameDirectories Method

Definition

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

C++/CX
public:
 int 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);

Parameters

cProjects
Int32

[in] Number of projects with renamed directories.

cDirs
Int32

[in] Number of directories renamed.

rgpProjects
IVsProject[]

[in] Array of projects from which directories were renamed.

rgFirstIndices
Int32[]

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

rgszMkOldNames
String[]

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

rgszMkNewNames
String[]

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

rgFlags
VSRENAMEDIRECTORYFLAGS[]

[in] Array of flags. For a list of rgFlags values, see VSRENAMEDIRECTORYFLAGS.

Returns

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

Remarks

COM Signature

From IVsTrackProjectDocumentsEvents2.idl

cpp#
HRESULT IVsTrackProjectDocumentsEvents2::OnAfterRenameDirectories(  
   [in] int cProjects,  
   [in] int cDirs,  
   [in, size_is(cProjects)] IVsProject *rgpProjects[],  
   [in, size_is(cProjects)] const int rgFirstIndices[],  
   [in, size_is(cDirs)] const LPCOLESTR rgszMkOldNames[],  
   [in, size_is(cDirs)] const LPCOLESTR rgszMkNewNames[],  
   [in, size_is(cDirs)] const VSRENAMEDIRECTORYFLAGS rgflags[]  
);  

Applies to

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