Visual Studio 2010
Queries listening clients as to whether the project can be closed.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int OnQueryCloseProject( [InAttribute] IVsHierarchy^ pHierarchy, [InAttribute] int fRemoving, [InAttribute] [OutAttribute] int% pfCancel )
- Type: Microsoft.VisualStudio.Shell.Interop::IVsHierarchy
[in] Pointer to the IVsHierarchy interface of the project to be closed.
- Type: System::Int32
[in] true if the project is being removed from the solution before the solution is closed. false if the project is being removed from the solution while the solution is being closed.
- Type: System::Int32%
[out] true if the client vetoed the closing of the project. false if the client approved the closing of the project.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.