다음을 통해 공유


EventSourceExtensions.HandleStatusEventRaised Method

Definition

Helper method ensuring single deduplicated subscription to the StatusEventRaised event.

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

Parameters

eventSource
IEventSource
handler
BuildStatusEventHandler

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

Applies to