Partager via


IVsSolutionEvents2.OnBeforeUnloadProject Method

Notifies listening clients that the project is about to be unloaded.

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

Syntax

'Déclaration
Function OnBeforeUnloadProject ( _
    pRealHierarchy As IVsHierarchy, _
    pStubHierarchy As IVsHierarchy _
) As Integer
'Utilisation
Dim instance As IVsSolutionEvents2
Dim pRealHierarchy As IVsHierarchy
Dim pStubHierarchy As IVsHierarchy
Dim returnValue As Integer

returnValue = instance.OnBeforeUnloadProject(pRealHierarchy, _
    pStubHierarchy)
int OnBeforeUnloadProject(
    IVsHierarchy pRealHierarchy,
    IVsHierarchy pStubHierarchy
)
int OnBeforeUnloadProject(
    [InAttribute] IVsHierarchy^ pRealHierarchy, 
    [InAttribute] IVsHierarchy^ pStubHierarchy
)
function OnBeforeUnloadProject(
    pRealHierarchy : IVsHierarchy, 
    pStubHierarchy : IVsHierarchy
) : int

Parameters

Return Value

Type: System.Int32

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

Implements

IVsSolutionEvents.OnBeforeUnloadProject(IVsHierarchy, IVsHierarchy)

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsSolutionEvents2::OnBeforeUnloadProject(
   [in] IVsHierarchy *pRealHierarchy,
   [in] IVsHierarchy *pStubHierarchy
);

Permissions

See Also

Reference

IVsSolutionEvents2 Interface

IVsSolutionEvents2 Members

Microsoft.VisualStudio.Shell.Interop Namespace