ModelingEditorFactory.OnQueryCloseSolution Method

Notifies listening clients that the modeling editor has closed.

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

Syntax

'Declaration
Public Function OnQueryCloseSolution ( _
    pUnkReserved As Object, _
    ByRef pfCancel As Integer _
) As Integer
'Usage
Dim instance As ModelingEditorFactory 
Dim pUnkReserved As Object 
Dim pfCancel As Integer 
Dim returnValue As Integer 

returnValue = instance.OnQueryCloseSolution(pUnkReserved, _
    pfCancel)
public int OnQueryCloseSolution(
    Object pUnkReserved,
    ref int pfCancel
)
public:
virtual int OnQueryCloseSolution(
    Object^ pUnkReserved, 
    int% pfCancel
) sealed
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

ModelingEditorFactory Members

Microsoft.VisualStudio.Modeling.Shell Namespace

IVsEditorFactory