SolutionListener.OnBeforeCloseSolution Method

Raised before the solution is closed.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)

Syntax

'宣言
Public Overridable Function OnBeforeCloseSolution ( _
    pUnkReserved As Object _
) As Integer
'使用
Dim instance As SolutionListener
Dim pUnkReserved As Object
Dim returnValue As Integer

returnValue = instance.OnBeforeCloseSolution(pUnkReserved)
public virtual int OnBeforeCloseSolution(
    Object pUnkReserved
)
public:
virtual int OnBeforeCloseSolution(
    Object^ pUnkReserved
)
public function OnBeforeCloseSolution(
    pUnkReserved : Object
) : int

Parameters

Return Value

Type: System.Int32

When implemented by derived classes, S_OK if the method succeeded, otherwise an error code.

Implements

IVsSolutionEvents3.OnBeforeCloseSolution(Object)
IVsSolutionEvents2.OnBeforeCloseSolution(Object)
IVsSolutionEvents.OnBeforeCloseSolution(Object)

Remarks

By default returns E_NOTIMPL.

Permissions

See Also

Reference

SolutionListener Class

SolutionListener Members

Microsoft.VisualStudio.Package Namespace