Udostępnij za pośrednictwem


EventSourceExtensions.HandleErrorRaised Method

Definition

Helper method ensuring single deduplicated subscription to the ErrorRaised event.

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

Parameters

eventSource
IEventSource
handler
BuildErrorEventHandler

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

Applies to