Share via


IVsSolution2.UpdateProjectFileLocation(IVsHierarchy) Method

Definition

Notifies a solution of a project file location change.

public:
 int UpdateProjectFileLocation(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHierarchy);
public:
 int UpdateProjectFileLocation(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHierarchy);
int UpdateProjectFileLocation(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pHierarchy);
public int UpdateProjectFileLocation (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHierarchy);
abstract member UpdateProjectFileLocation : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy -> int
Public Function UpdateProjectFileLocation (pHierarchy As IVsHierarchy) As Integer

Parameters

pHierarchy
IVsHierarchy

[in] IVsHierarchy object.

Returns

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

Remarks

COM Signature

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.

Applies to