IVsFireSolutionEvents.FireOnQueryCloseProject Method

Fires a solution event, OnQueryCloseProject, indicating a query about closing the project.

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

Syntax

'Declaration
Function FireOnQueryCloseProject ( _
    pHierarchy As IVsHierarchy, _
    fRemoving As Integer _
) As Integer
int FireOnQueryCloseProject(
    IVsHierarchy pHierarchy,
    int fRemoving
)
int FireOnQueryCloseProject(
    [InAttribute] IVsHierarchy^ pHierarchy, 
    [InAttribute] int fRemoving
)
abstract FireOnQueryCloseProject : 
        pHierarchy:IVsHierarchy * 
        fRemoving:int -> int 
function FireOnQueryCloseProject(
    pHierarchy : IVsHierarchy, 
    fRemoving : int
) : int

Parameters

  • fRemoving
    Type: System.Int32
    [in] Boolean. Set to true if the project is being removed from the solution before the solution is closed. Set to false if the project is being removed from the solution while the solution is being closed.

Return Value

Type: System.Int32
Returns S_FALSE if the callee vetoes the operation. Otherwise, returns S_OK.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsFireSolutionEvents::FireOnQueryCloseProject(
   [in] IVsHierarchy *pHierarchy, 
   [in] BOOL fRemoving
);

.NET Framework Security

See Also

Reference

IVsFireSolutionEvents Interface

Microsoft.VisualStudio.Shell.Interop Namespace