EventSourceExtensions.HandleWarningRaised Method

Definition

Helper method ensuring single deduplicated subscription to the WarningRaised event.

C#
public static void HandleWarningRaised(this Microsoft.Build.Framework.IEventSource eventSource, Microsoft.Build.Framework.BuildWarningEventHandler handler);

Parameters

eventSource
IEventSource
handler
BuildWarningEventHandler

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

Applies to

Ürün Sürümler
MSBuild 17
MSBuild (.NET Core) 17