共用方式為


IVsTrackProjectRetargeting.AdviseTrackBatchRetargetingEvents Method

Definition

Enables the client to receive notifications of batch project retargeting events.

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

Parameters

pEventSink
IVsTrackBatchRetargetingEvents

[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 UnadviseTrackBatchRetargetingEvents(UInt32) method.

Returns

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

Applies to