MessageRaised Event
See Also 
SourceCode.ProjectSystem Namespace > ProjectLogger Class : MessageRaised Event



Glossary Item Box

Syntax

Visual Basic (Declaration)  
Public Event MessageRaised As EventHandler(Of BuildMessageEventArgs)
Visual Basic (Usage) Copy Code
Dim instance As ProjectLogger
Dim handler As EventHandler(Of BuildMessageEventArgs)
 
AddHandler instance.MessageRaised, handler
C#  
public event EventHandler<BuildMessageEventArgs> MessageRaised
C++/CLI  
public:
event EventHandler<BuildMessageEventArgs^>^ MessageRaised

Event Data

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

Property Description
BuildEventContext (Inherited from Microsoft.Build.Framework.BuildEventArgs)  
Code Code associated with event.
ColumnNumber Column number of interest in associated file.
EndColumnNumber Ending column number of interest in associated file.
EndLineNumber Ending line number of interest in associated file.
File File associated with event.
HelpKeyword (Inherited from Microsoft.Build.Framework.BuildEventArgs)  
Importance Gets the importance of the event.
LineNumber Line number of interest in associated file.
Message (Inherited from Microsoft.Build.Framework.LazyFormattedBuildEventArgs)  
ProjectFile The project which was building when the message was issued.
SenderName (Inherited from Microsoft.Build.Framework.BuildEventArgs)  
Subcategory The custom sub-type 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