共用方式為


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

'宣告
Function UpdateProjectFileLocation ( _
    pHierarchy As IVsHierarchy _
) As Integer
'用途
Dim instance As IVsSolution2
Dim pHierarchy As IVsHierarchy
Dim returnValue As Integer

returnValue = instance.UpdateProjectFileLocation(pHierarchy)
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

IVsSolution2 Members

Microsoft.VisualStudio.Shell.Interop Namespace