Delen via


IVsSolutionEvents3.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

'Declaration
Function OnBeforeUnloadProject ( _
    pRealHierarchy As IVsHierarchy, _
    pStubHierarchy As IVsHierarchy _
) As Integer
int OnBeforeUnloadProject(
    IVsHierarchy pRealHierarchy,
    IVsHierarchy pStubHierarchy
)
int OnBeforeUnloadProject(
    [InAttribute] IVsHierarchy^ pRealHierarchy, 
    [InAttribute] IVsHierarchy^ pStubHierarchy
)
abstract OnBeforeUnloadProject : 
        pRealHierarchy:IVsHierarchy * 
        pStubHierarchy:IVsHierarchy -> int
function OnBeforeUnloadProject(
    pRealHierarchy : IVsHierarchy, 
    pStubHierarchy : IVsHierarchy
) : int

Parameters

Return Value

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

Remarks

COM Signature

From vsshell.idl:

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

.NET Framework Security

See Also

Reference

IVsSolutionEvents3 Interface

Microsoft.VisualStudio.Shell.Interop Namespace