次の方法で共有


EventSourceExtensions.HandleBuildFinished Method

Definition

Helper method ensuring single deduplicated subscription to the BuildFinished event.

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

Parameters

eventSource
IEventSource
handler
BuildFinishedEventHandler

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

Applies to