OnAfterRenameFiles Method
This documentation is archived and is not being maintained.

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.

Show:
© 2016 Microsoft