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.OnAfterRenameFiles Method

This method is called by a project after files have been renamed in the project.

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

int OnAfterRenameFiles (
	[InAttribute] IVsProject pProject,
	[InAttribute] int cFiles,
	[InAttribute] string[] rgszMkOldNames,
	[InAttribute] string[] rgszMkNewNames,
	[InAttribute] VSRENAMEFILEFLAGS[] rgFlags
)
int OnAfterRenameFiles (
	/** @attribute InAttribute() */ IVsProject pProject, 
	/** @attribute InAttribute() */ int cFiles, 
	/** @attribute InAttribute() */ String[] rgszMkOldNames, 
	/** @attribute InAttribute() */ String[] rgszMkNewNames, 
	/** @attribute InAttribute() */ VSRENAMEFILEFLAGS[] rgFlags
)
function OnAfterRenameFiles (
	pProject : IVsProject, 
	cFiles : int, 
	rgszMkOldNames : String[], 
	rgszMkNewNames : String[], 
	rgFlags : VSRENAMEFILEFLAGS[]
) : int

Parameters

pProject

[in] Project containing the files that were renamed.

cFiles

[in] Number of files that were renamed.

rgszMkOldNames

[in] Array of paths for the old files' names.

rgszMkNewNames

[in] Array of paths for the new files' names.

rgFlags

[in] For a list of rgflags values, see VSRENAMEFILEFLAGS.

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::OnAfterRenameFiles(
   [in] IVsProject *pProject,
   [in] int cFiles,
   [in, size_is(cFiles)] const LPCOLESTR rgszMkOldNames[],
   [in, size_is(cFiles)] const LPCOLESTR rgszMkNewNames[],
   [in, size_is(cFiles)] const VSRENAMEFILEFLAGS rgflags[]
);

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

Community Additions

ADD
Show:
© 2015 Microsoft