Compartilhar via


ModelingEditorFactory.OnQueryCloseSolution Method

Notifies listening clients that the modeling editor has closed.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)

Syntax

'Declaração
Public Function OnQueryCloseSolution ( _
    pUnkReserved As Object, _
    ByRef pfCancel As Integer _
) As Integer
public int OnQueryCloseSolution(
    Object pUnkReserved,
    ref int pfCancel
)
public:
virtual int OnQueryCloseSolution(
    Object^ pUnkReserved, 
    int% pfCancel
) sealed
abstract OnQueryCloseSolution : 
        pUnkReserved:Object * 
        pfCancel:int byref -> int 
override OnQueryCloseSolution : 
        pUnkReserved:Object * 
        pfCancel:int byref -> int 
public final function OnQueryCloseSolution(
    pUnkReserved : Object, 
    pfCancel : int
) : int

Parameters

  • pfCancel
    Type: System.Int32%
    true to notify clients that the modeling editor has closed without client approval; otherwise, false.

Return Value

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

Implements

IVsSolutionEvents.OnQueryCloseSolution(Object, Int32%)

.NET Framework Security

See Also

Reference

ModelingEditorFactory Class

Microsoft.VisualStudio.Modeling.Shell Namespace

IVsEditorFactory