IVsTrackProjectDocuments2.OnAfterRenameDirectories Method (IVsProject, Int32, String[], String[], VSRENAMEDIRECTORYFLAGS[])
This method is called by a project after a directory has been renamed in the project.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int OnAfterRenameDirectories( IVsProject pProject, int cDirs, string[] rgszMkOldNames, string[] rgszMkNewNames, VSRENAMEDIRECTORYFLAGS[] rgFlags )
Parameters
- pProject
-
Type:
Microsoft.VisualStudio.Shell.Interop.IVsProject
[in] Project containing the renamed directories.
- cDirs
-
Type:
System.Int32
[in] Number of directories to rename.
- rgszMkOldNames
-
Type:
System.String[]
[in] Array of paths for the old names of the directories.
- rgszMkNewNames
-
Type:
System.String[]
[in] Array of paths for the new names of the directories.
- rgFlags
-
Type:
Microsoft.VisualStudio.Shell.Interop.VSRENAMEDIRECTORYFLAGS[]
[in] Flags specifying information about the renamed directories. For a list of rgflags values, see VSRENAMEDIRECTORYFLAGS.
Return Value
Type: System.Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
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. |
