次の方法で共有


IVsTrackProjectRetargeting.AdviseTrackProjectRetargetingEvents Method

Definition

Enables the client to receive notifications of project retargeting events.

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

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