Compartir a través de


IVsSolutionEvents3.OnQueryCloseSolution Method (Object, Int32%)

Queries listening clients as to whether the solution can be closed.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaración
Function OnQueryCloseSolution ( _
    pUnkReserved As Object, _
    <OutAttribute> ByRef pfCancel As Integer _
) As Integer
'Uso
Dim instance As IVsSolutionEvents3
Dim pUnkReserved As Object
Dim pfCancel As Integer
Dim returnValue As Integer

returnValue = instance.OnQueryCloseSolution(pUnkReserved, _
    pfCancel)
int OnQueryCloseSolution(
    Object pUnkReserved,
    out int pfCancel
)
int OnQueryCloseSolution(
    [InAttribute] Object^ pUnkReserved, 
    [InAttribute] [OutAttribute] int% pfCancel
)
abstract OnQueryCloseSolution : 
        pUnkReserved:Object * 
        pfCancel:int byref -> int 
function OnQueryCloseSolution(
    pUnkReserved : Object, 
    pfCancel : int
) : int

Parameters

  • pfCancel
    Type: System.Int32%
    [out] true if the client vetoed closing the solution. false if the client approved closing the solution.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

IVsSolutionEvents2.OnQueryCloseSolution(Object, Int32%)

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsSolutionEvents3::OnQueryCloseSolution(
   [in] IUnknown *pUnkReserved,
   [in,out] BOOL *pfCancel
);

.NET Framework Security

See Also

Reference

IVsSolutionEvents3 Interface

IVsSolutionEvents3 Members

OnQueryCloseSolution Overload

Microsoft.VisualStudio.Shell.Interop Namespace