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



Glossary Item Box

Syntax

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

Event Data

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

Property Description
BuildEventContext (Inherited from Microsoft.Build.Framework.BuildEventArgs)  
Code Gets the error 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 set the name of the project file which issued this event.
SenderName (Inherited from Microsoft.Build.Framework.BuildEventArgs)  
Subcategory Gets the custom subtype 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