다음을 통해 공유


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

‘선언
Function FireOnQueryCloseProject ( _
    pHierarchy As IVsHierarchy, _
    fRemoving As Integer _
) As Integer
‘사용 방법
Dim instance As IVsFireSolutionEvents
Dim pHierarchy As IVsHierarchy
Dim fRemoving As Integer
Dim returnValue As Integer

returnValue = instance.FireOnQueryCloseProject(pHierarchy, _
    fRemoving)
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

IVsFireSolutionEvents Members

Microsoft.VisualStudio.Shell.Interop Namespace