Freigeben über


IVsFireSolutionEvents.FireOnBeforeUnloadProject Method

Fires a solution event, OnBeforeUnloadProject, before unloading a project from a project hierarchy.

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

Syntax

'Declaration
Function FireOnBeforeUnloadProject ( _
    pHierarchy As IVsHierarchy _
) As Integer
int FireOnBeforeUnloadProject(
    IVsHierarchy pHierarchy
)
int FireOnBeforeUnloadProject(
    [InAttribute] IVsHierarchy^ pHierarchy
)
abstract FireOnBeforeUnloadProject : 
        pHierarchy:IVsHierarchy -> int
function FireOnBeforeUnloadProject(
    pHierarchy : 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 IVsFireSolutionEvents::FireOnBeforeUnloadProject(
   [in] IVsHierarchy *pHierarchy
);

.NET Framework Security

See Also

Reference

IVsFireSolutionEvents Interface

Microsoft.VisualStudio.Shell.Interop Namespace