IVsTrackProjectDocuments2.OnAfterRenameDirectories Method

Definition

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

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

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

cpp#
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.

注意

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

製品 バージョン
Visual Studio SDK 2015, 2017, 2019, 2022