EventSourceExtensions.HandleWarningRaised Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Helper method ensuring single deduplicated subscription to the WarningRaised event.
public:
[System::Runtime::CompilerServices::Extension]
static void HandleWarningRaised(Microsoft::Build::Framework::IEventSource ^ eventSource, Microsoft::Build::Framework::BuildWarningEventHandler ^ handler);
public static void HandleWarningRaised (this Microsoft.Build.Framework.IEventSource eventSource, Microsoft.Build.Framework.BuildWarningEventHandler handler);
static member HandleWarningRaised : Microsoft.Build.Framework.IEventSource * Microsoft.Build.Framework.BuildWarningEventHandler -> unit
<Extension()>
Public Sub HandleWarningRaised (eventSource As IEventSource, handler As BuildWarningEventHandler)
Parameters
- eventSource
- IEventSource
- handler
- BuildWarningEventHandler
Handler to the event. If this handler is already subscribed, single subscription will be ensured.