Export (0) Print
Expand All

IVsSolution.OnAfterRenameProject Method

Completes the renaming of a project.

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

int OnAfterRenameProject (
	[InAttribute] IVsProject pProject,
	[InAttribute] string pszMkOldName,
	[InAttribute] string pszMkNewName,
	[InAttribute] uint dwReserved
)
int OnAfterRenameProject (
	/** @attribute InAttribute() */ IVsProject pProject, 
	/** @attribute InAttribute() */ String pszMkOldName, 
	/** @attribute InAttribute() */ String pszMkNewName, 
	/** @attribute InAttribute() */ UInt32 dwReserved
)
function OnAfterRenameProject (
	pProject : IVsProject, 
	pszMkOldName : String, 
	pszMkNewName : String, 
	dwReserved : uint
) : int

Parameters

pProject

[in] IVsProject pointer for the project to rename.

pszMkOldName

[in] Old name of the project on disk.

pszMkNewName

[in] New name of the project on disk.

dwReserved

[in] Reserved for future use.

Return Value

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

COM Signature

From vsshell.idl:

HRESULT IVsSolution::OnAfterRenameProject(
   [in] IVsProject *pProject,
   [in] LPCOLESTR pszMkOldName,
   [in] LPCOLESTR pszMkNewName,
   [in] DWORD dwReserved
);

This method completes the renaming of a project. If the project is stored in the file system, the caller is required to rename the file in the file system prior to calling this method (for example, by calling the MoveFile method in the Platform SDK). This method handles updating the running document table and notifying IVsTrackProjectDocuments2 so that clients (for example, source control) can know that the project file has been renamed.

Community Additions

ADD
Show:
© 2014 Microsoft