IVsSolution2.UpdateProjectFileLocation Method

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)

Syntax

'Declaration
Function UpdateProjectFileLocation ( _
    pHierarchy As IVsHierarchy _
) As Integer
int UpdateProjectFileLocation(
    IVsHierarchy pHierarchy
)
int UpdateProjectFileLocation(
    [InAttribute] IVsHierarchy^ pHierarchy
)
abstract UpdateProjectFileLocation : 
        pHierarchy:IVsHierarchy -> int 
function UpdateProjectFileLocation(
    pHierarchy : IVsHierarchy
) : int

Parameters

Return Value

Type: System.Int32
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.

.NET Framework Security

See Also

Reference

IVsSolution2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace