ActionableSolutionListener.OnQueryCloseSolution Method
Called to query clients whether a solution 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 OnQueryCloseSolution ( _
unknownReserved As Object, _
ByRef cancel As Integer _
) As Integer
'Usage
Dim instance As ActionableSolutionListener
Dim unknownReserved As Object
Dim cancel As Integer
Dim returnValue As Integer
returnValue = instance.OnQueryCloseSolution(unknownReserved, _
cancel)
public override int OnQueryCloseSolution(
Object unknownReserved,
ref int cancel
)
public:
virtual int OnQueryCloseSolution(
Object^ unknownReserved,
int% cancel
) override
public override function OnQueryCloseSolution(
unknownReserved : Object,
cancel : int
) : int
abstract OnQueryCloseSolution :
unknownReserved:Object *
cancel:int -> int
override OnQueryCloseSolution :
unknownReserved:Object *
cancel:int -> int
Parameters
- unknownReserved
Type: System.Object
Not used
- cancel
Type: System.Int32%
Specifies whether the client vetoed closing the solution
Return Value
Type: System.Int32
Implements
IVsSolutionEvents3.OnQueryCloseSolution(Object, Int32%)
IVsSolutionEvents2.OnQueryCloseSolution(Object, Int32%)
IVsSolutionEvents.OnQueryCloseSolution(Object, Int32%)
.NET Framework Security
- 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.
See Also
Reference
ActionableSolutionListener Class
ActionableSolutionListener Members
Microsoft.VisualStudio.Data.Schema.Project.Project.Utilities Namespace