IVsSolutionBuildManager2.AdviseUpdateSolutionEvents(IVsUpdateSolutionEvents, UInt32) Method

Definition

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

public:
 int AdviseUpdateSolutionEvents(Microsoft::VisualStudio::Shell::Interop::IVsUpdateSolutionEvents ^ pIVsUpdateSolutionEvents, [Runtime::InteropServices::Out] System::UInt32 % pdwCookie);
int AdviseUpdateSolutionEvents(Microsoft::VisualStudio::Shell::Interop::IVsUpdateSolutionEvents const & pIVsUpdateSolutionEvents, [Runtime::InteropServices::Out] unsigned int & pdwCookie);
public int AdviseUpdateSolutionEvents (Microsoft.VisualStudio.Shell.Interop.IVsUpdateSolutionEvents pIVsUpdateSolutionEvents, out uint pdwCookie);
abstract member AdviseUpdateSolutionEvents : Microsoft.VisualStudio.Shell.Interop.IVsUpdateSolutionEvents *  -> int
Public Function AdviseUpdateSolutionEvents (pIVsUpdateSolutionEvents As IVsUpdateSolutionEvents, ByRef pdwCookie As UInteger) As Integer

Parameters

pIVsUpdateSolutionEvents
IVsUpdateSolutionEvents

[in] Pointer to an IVsUpdateSolutionEvents object.

pdwCookie
UInt32

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

Returns

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

Implements

Remarks

COM Signature

From vsshell.idl:

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

Allows the caller to listen for the set of events that solution build manager fires from IVsUpdateSolutionEvents2. 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.

Applies to