ActionableSolutionListener.OnQueryCloseProject Method

Called to query clients whether a project may close.

Namespace:  Microsoft.VisualStudio.Data.Schema.Project.Project.Utilities
Assembly:  Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)

Syntax

'Declaration
Public Overrides Function OnQueryCloseProject ( _
    hierarchy As IVsHierarchy, _
    removing As Integer, _
    ByRef cancel As Integer _
) As Integer
'Usage
Dim instance As ActionableSolutionListener
Dim hierarchy As IVsHierarchy
Dim removing As Integer
Dim cancel As Integer
Dim returnValue As Integer

returnValue = instance.OnQueryCloseProject(hierarchy, _
    removing, cancel)
public override int OnQueryCloseProject(
    IVsHierarchy hierarchy,
    int removing,
    ref int cancel
)
public:
virtual int OnQueryCloseProject(
    IVsHierarchy^ hierarchy, 
    int removing, 
    int% cancel
) override
public override function OnQueryCloseProject(
    hierarchy : IVsHierarchy, 
    removing : int, 
    cancel : int
) : int
abstract OnQueryCloseProject : 
        hierarchy:IVsHierarchy * 
        removing:int * 
        cancel:int -> int 
override OnQueryCloseProject : 
        hierarchy:IVsHierarchy * 
        removing:int * 
        cancel:int -> int 

Parameters

  • removing
    Type: System.Int32
    Specifies whether the project is being removed from the solution before the solution is closed
  • cancel
    Type: System.Int32%
    Specifies whether the client vetoed closing the project

Return Value

Type: System.Int32

Implements

IVsSolutionEvents3.OnQueryCloseProject(IVsHierarchy, Int32, Int32%)
IVsSolutionEvents2.OnQueryCloseProject(IVsHierarchy, Int32, Int32%)
IVsSolutionEvents.OnQueryCloseProject(IVsHierarchy, Int32, Int32%)

.NET Framework Security

See Also

Reference

ActionableSolutionListener Class

ActionableSolutionListener Members

Microsoft.VisualStudio.Data.Schema.Project.Project.Utilities Namespace