Establishes client notification of solution events.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int AdviseSolutionEvents( [InAttribute] IVsSolutionEvents^ pSink, [OutAttribute] unsigned int% pdwCookie )
- Type: Microsoft.VisualStudio.Shell.Interop::IVsSolutionEvents
[in] Pointer to the IVsSolutionEvents interface on the object requesting notification of solution events.
HRESULT IVsSolution::AdviseSolutionEvents( [in] IVsSolutionEvents *pSink, [out] VSCOOKIE *pdwCookie );
Use this method to set up notification of solution events on a particular object by synchronizing the solution to the solution events. For example, the Output window contains some panes that provide information about the solution. These panes are closed when the solution is closed. Thus, when the solution close event is received, then the Output window clears the Build pane and the Debug Output pane. For another example, see OnAfterSave.
- 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.