WarningRaised Event
See Also 
SourceCode.Framework Namespace > IEngineProxy Interface : WarningRaised Event



Glossary Item Box

Syntax

Visual Basic (Declaration)  
Event WarningRaised As EventHandler(Of BuildWarningEventArgs)
Visual Basic (Usage) Copy Code
Dim instance As IEngineProxy
Dim handler As EventHandler(Of BuildWarningEventArgs)
 
AddHandler instance.WarningRaised, handler
C#  
event EventHandler<BuildWarningEventArgs> WarningRaised
C++/CLI  
event EventHandler<BuildWarningEventArgs^>^ WarningRaised

Event Data

The event handler receives an argument of type BuildWarningEventArgs containing data related to this event. The following BuildWarningEventArgs properties provide information specific to this event.

Property Description
BuildEventContext (Inherited from Microsoft.Build.Framework.BuildEventArgs)  
Code Gets the warning code of the event.
ColumnNumber Gets the column number that corresponds to the beginning of the section of code that raised the event.
EndColumnNumber Gets the column number that corresponds to the end of the section of code that raised the event.
EndLineNumber Gets the line number that corresponds to the end of the section of code that raised the event.
File Gets the name of the file that raised the event.
HelpKeyword (Inherited from Microsoft.Build.Framework.BuildEventArgs)  
LineNumber Gets the line number that corresponds to the beginning of the section of code that raised the event.
Message (Inherited from Microsoft.Build.Framework.LazyFormattedBuildEventArgs)  
ProjectFile Gets or sets the project which was building when the message was issued.
SenderName (Inherited from Microsoft.Build.Framework.BuildEventArgs)  
Subcategory Gets the custom subcategory of the event.
ThreadId (Inherited from Microsoft.Build.Framework.BuildEventArgs)  
Timestamp (Inherited from Microsoft.Build.Framework.BuildEventArgs)  

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also