共用方式為


EventSourceExtensions.HandleTaskFinished Method

Definition

Helper method ensuring single deduplicated subscription to the TaskFinished event.

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

Parameters

eventSource
IEventSource
handler
TaskFinishedEventHandler

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

Applies to