Sdílet prostřednictvím


IVsTrackProjectDocuments2.OnAfterRenameDirectories Method

Definition

This method is called by a project after a directory has been renamed in the project.

public:
 int OnAfterRenameDirectories(Microsoft::VisualStudio::Shell::Interop::IVsProject ^ pProject, int cDirs, cli::array <System::String ^> ^ rgszMkOldNames, cli::array <System::String ^> ^ rgszMkNewNames, cli::array <Microsoft::VisualStudio::Shell::Interop::VSRENAMEDIRECTORYFLAGS> ^ rgFlags);
public:
 int OnAfterRenameDirectories(Microsoft::VisualStudio::Shell::Interop::IVsProject ^ pProject, int cDirs, Platform::Array <Platform::String ^> ^ rgszMkOldNames, Platform::Array <Platform::String ^> ^ rgszMkNewNames, Platform::Array <Microsoft::VisualStudio::Shell::Interop::VSRENAMEDIRECTORYFLAGS> ^ rgFlags);
int OnAfterRenameDirectories(Microsoft::VisualStudio::Shell::Interop::IVsProject const & pProject, int cDirs, 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 (Microsoft.VisualStudio.Shell.Interop.IVsProject pProject, int cDirs, string[] rgszMkOldNames, string[] rgszMkNewNames, Microsoft.VisualStudio.Shell.Interop.VSRENAMEDIRECTORYFLAGS[] rgFlags);
abstract member OnAfterRenameDirectories : Microsoft.VisualStudio.Shell.Interop.IVsProject * int * string[] * string[] * Microsoft.VisualStudio.Shell.Interop.VSRENAMEDIRECTORYFLAGS[] -> int
Public Function OnAfterRenameDirectories (pProject As IVsProject, cDirs As Integer, rgszMkOldNames As String(), rgszMkNewNames As String(), rgFlags As VSRENAMEDIRECTORYFLAGS()) As Integer

Parameters

pProject
IVsProject

[in] Project containing the renamed directories.

cDirs
Int32

[in] Number of directories to rename.

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] Flags specifying information about the renamed directories. 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 IVsTrackProjectDocuments2.idl

HRESULT IVsTrackProjectDocuments2::OnAfterRenameDirectories(  
   [in] IVsProject *pProject,  
   [in] int cDirs,  
   [in, size_is(cDirs)] const LPCOLESTR rgszMkOldNames[],  
   [in, size_is(cDirs)] const LPCOLESTR rgszMkNewNames[],  
   [in, size_is(cDirs)] const VSRENAMEDIRECTORYFLAGS rgflags[]  
);  

The project calls this method after it has renamed a directory to notify the environment that the directory has been renamed.

Note

All directory calls are optional. However, if you call one of the OnQuery* directory methods, then you are required to call the corresponding OnAfter* directory method if the OnQuery* call was successful.

Applies to