Visual Basic (Declaration) | |
---|---|
Event MessageRaised As EventHandler(Of BuildMessageEventArgs) |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As IEngineProxy Dim handler As EventHandler(Of BuildMessageEventArgs) AddHandler instance.MessageRaised, handler |
C# | |
---|---|
event EventHandler<BuildMessageEventArgs> MessageRaised |
C++/CLI | |
---|---|
event EventHandler<BuildMessageEventArgs^>^ MessageRaised |
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) |
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