Raised to redraw the project references when unloading a project from the solution.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Public Overrides Function OnBeforeUnloadProject ( _
realHierarchy As IVsHierarchy, _
stubHierarchy As IVsHierarchy _
) As Integer
'使用
Dim instance As SolutionListenerForProjectReferenceUpdate
Dim realHierarchy As IVsHierarchy
Dim stubHierarchy As IVsHierarchy
Dim returnValue As Integer
returnValue = instance.OnBeforeUnloadProject(realHierarchy, _
stubHierarchy)
public override int OnBeforeUnloadProject(
IVsHierarchy realHierarchy,
IVsHierarchy stubHierarchy
)
public:
virtual int OnBeforeUnloadProject(
IVsHierarchy^ realHierarchy,
IVsHierarchy^ stubHierarchy
) override
public override function OnBeforeUnloadProject(
realHierarchy : IVsHierarchy,
stubHierarchy : IVsHierarchy
) : int
Parameters
realHierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchyThe open project node.
stubHierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchyThe project node in the placeholder hierarchy.
Return Value
Type: System.Int32
S_OK.
Implements
IVsSolutionEvents3.OnBeforeUnloadProject(IVsHierarchy, IVsHierarchy)
IVsSolutionEvents2.OnBeforeUnloadProject(IVsHierarchy, IVsHierarchy)
IVsSolutionEvents.OnBeforeUnloadProject(IVsHierarchy, IVsHierarchy)
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
SolutionListenerForProjectReferenceUpdate Class