Compartilhar via


IVsTrackProjectDocumentsEvents2.OnAfterRenameDirectories Method

Definition

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

public:
 int 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);
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);
int 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);
public int 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 OnAfterRenameDirectories : int * int * Microsoft.VisualStudio.Shell.Interop.IVsProject[] * int[] * string[] * string[] * Microsoft.VisualStudio.Shell.Interop.VSRENAMEDIRECTORYFLAGS[] -> int
Public 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

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

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