共用方式為


EventSourceExtensions.HandleCustomEventRaised Method

Definition

Helper method ensuring single deduplicated subscription to the CustomEventRaised event.

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

Parameters

eventSource
IEventSource
handler
CustomBuildEventHandler

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

Applies to