IVsSolutionBuildManager::AdviseUpdateSolutionEvents Method (IVsUpdateSolutionEvents^, UInt32)

 

Adds the caller to the list of listeners for IVsUpdateSolutionEvents events.

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

int AdviseUpdateSolutionEvents(
	IVsUpdateSolutionEvents^ pIVsUpdateSolutionEvents,
	[OutAttribute] unsigned int% pdwCookie
)

Parameters

pIVsUpdateSolutionEvents
Type: Microsoft.VisualStudio.Shell.Interop::IVsUpdateSolutionEvents^

[in] Pointer to the IVsSolutionEvents interface on the object requesting notification of solution events.

pdwCookie
Type: System::UInt32

[out] Pointer to a double word containing the cookie.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

From vsshell.idl:

HRESULT IVsSolutionBuildManager::AdviseUpdateSolutionEvents(
   [in] IVsUpdateSolutionEvents *pIVsUpdateSolutionEvents,
   [out] VSCOOKIE *pdwCookie
);

Allows the caller to listen for the set of events that solution build manager fires from IVsUpdateSolutionEvents. This interface contains the events set for solution and project building.

When this method is called, you pass in a pointer to your events object and a cookie is provided that can then be passed to the UnadviseUpdateSolutionEvents method to stop listening.

Return to top
Show: