IVsSolution2::UpdateProjectFileLocation Method (IVsHierarchy^)

 

Notifies a solution of a project file location change.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int UpdateProjectFileLocation(
	IVsHierarchy^ pHierarchy
)

Return Value

Type: System::Int32

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

From vsshell.idl:

HRESULT IVsSolution2::UpdateProjectFileLocation(
   [in] IVsHierarchy *pHierarchy
);

Tells the solution to update the internal file names it is keeping for a project—particularly the file name that is being monitored for file change notifications. This is used, for example, when a Web project is taken off-line so the solution knows to update the file name and watch the local file name rather than the Web file name.

Return to top
Show: