IVsTrackProjectRetargeting.AdviseTrackProjectRetargetingEvents Method

Definition

Enables the client to receive notifications of project retargeting events.

C++/WinRT
int AdviseTrackProjectRetargetingEvents(Microsoft::VisualStudio::Shell::Interop::IVsTrackProjectRetargetingEvents const & pEventSink, [Runtime::InteropServices::Out] unsigned int & pdwCookie);

Parameters

pEventSink
IVsTrackProjectRetargetingEvents

[in] The object that receives the event notifications.

pdwCookie
UInt32

[out] Returns an abstract value that identifies the client to be advised of batch retargeting events. Use this cookie later in a call to the UnadviseTrackProjectRetargetingEvents(UInt32) method.

Returns

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

Applies to

Proizvod Verzije
Visual Studio SDK 2015, 2017, 2019, 2022