次の方法で共有


EventSourceExtensions.HandleProjectStarted Method

Definition

Helper method ensuring single deduplicated subscription to the ProjectStarted event.

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

Parameters

eventSource
IEventSource
handler
ProjectStartedEventHandler

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

Applies to