Partager via


EventSourceExtensions.HandleTargetStarted Method

Definition

Helper method ensuring single deduplicated subscription to the TargetStarted event.

public:
[System::Runtime::CompilerServices::Extension]
 static void HandleTargetStarted(Microsoft::Build::Framework::IEventSource ^ eventSource, Microsoft::Build::Framework::TargetStartedEventHandler ^ handler);
public static void HandleTargetStarted (this Microsoft.Build.Framework.IEventSource eventSource, Microsoft.Build.Framework.TargetStartedEventHandler handler);
static member HandleTargetStarted : Microsoft.Build.Framework.IEventSource * Microsoft.Build.Framework.TargetStartedEventHandler -> unit
<Extension()>
Public Sub HandleTargetStarted (eventSource As IEventSource, handler As TargetStartedEventHandler)

Parameters

eventSource
IEventSource
handler
TargetStartedEventHandler

Handler to the event. If this handler is already subscribed, single subscription will be ensured.

Applies to