Export (0) Print
Expand All

IVsTrackProjectDocuments2.OnAfterRenameFile Method

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

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

int OnAfterRenameFile (
	[InAttribute] IVsProject pProject,
	[InAttribute] string pszMkOldName,
	[InAttribute] string pszMkNewName,
	[InAttribute] VSRENAMEFILEFLAGS flags
)
int OnAfterRenameFile (
	/** @attribute InAttribute() */ IVsProject pProject, 
	/** @attribute InAttribute() */ String pszMkOldName, 
	/** @attribute InAttribute() */ String pszMkNewName, 
	/** @attribute InAttribute() */ VSRENAMEFILEFLAGS flags
)
function OnAfterRenameFile (
	pProject : IVsProject, 
	pszMkOldName : String, 
	pszMkNewName : String, 
	flags : VSRENAMEFILEFLAGS
) : int

Parameters

pProject

[in] Project containing the files that were renamed.

pszMkOldName

[in] Path for the old file.

pszMkNewName

[in] Path for the renamed file.

flags

[in] For a list of flags 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::OnAfterRenameFile(
   [in] IVsProject *pProject,
   [in] LPCOLESTR pszMkOldName,
   [in] LPCOLESTR pszMkNewName,
   [in] VSRENAMEFILEFLAGS flags
);

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

Community Additions

ADD
Show:
© 2015 Microsoft