IVsFireSolutionEvents::FireOnQueryCloseProject Method (IVsHierarchy^, Int32)

 

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)

int FireOnQueryCloseProject(
	IVsHierarchy^ pHierarchy,
	int fRemoving
)

Parameters

pHierarchy
Type: Microsoft.VisualStudio.Shell.Interop::IVsHierarchy^

[in] Pointer to the IVsHierarchy interface of the project being closed.

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.

From vsshell.idl:

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