Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

IVsTrackProjectDocuments2.OnAfterRenameDirectories Method

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

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)

int OnAfterRenameDirectories (
	[InAttribute] IVsProject pProject,
	[InAttribute] int cDirs,
	[InAttribute] string[] rgszMkOldNames,
	[InAttribute] string[] rgszMkNewNames,
	[InAttribute] VSRENAMEDIRECTORYFLAGS[] rgFlags
)
int OnAfterRenameDirectories (
	/** @attribute InAttribute() */ IVsProject pProject, 
	/** @attribute InAttribute() */ int cDirs, 
	/** @attribute InAttribute() */ String[] rgszMkOldNames, 
	/** @attribute InAttribute() */ String[] rgszMkNewNames, 
	/** @attribute InAttribute() */ VSRENAMEDIRECTORYFLAGS[] rgFlags
)
function OnAfterRenameDirectories (
	pProject : IVsProject, 
	cDirs : int, 
	rgszMkOldNames : String[], 
	rgszMkNewNames : String[], 
	rgFlags : VSRENAMEDIRECTORYFLAGS[]
) : int

Parameters

pProject

[in] Project containing the renamed directories.

cDirs

[in] Number of directories to rename.

rgszMkOldNames

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

rgszMkNewNames

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

rgFlags

[in] Flags specifying information about the renamed directories. For a list of rgflags values, see VSRENAMEDIRECTORYFLAGS.

Return Value

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

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.

NoteNote

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.

Community Additions

ADD
Show:
© 2015 Microsoft