BuildMessageEventArgs Class

Definition

Arguments for message events

public ref class BuildMessageEventArgs : Microsoft::Build::Framework::LazyFormattedBuildEventArgs
public ref class BuildMessageEventArgs : Microsoft::Build::Framework::BuildEventArgs
[System.Serializable]
public class BuildMessageEventArgs : Microsoft.Build.Framework.LazyFormattedBuildEventArgs
[System.Serializable]
public class BuildMessageEventArgs : Microsoft.Build.Framework.BuildEventArgs
[<System.Serializable>]
type BuildMessageEventArgs = class
    inherit LazyFormattedBuildEventArgs
[<System.Serializable>]
type BuildMessageEventArgs = class
    inherit BuildEventArgs
Public Class BuildMessageEventArgs
Inherits LazyFormattedBuildEventArgs
Public Class BuildMessageEventArgs
Inherits BuildEventArgs
Inheritance
Inheritance
BuildMessageEventArgs
Derived
Attributes

Remarks

WARNING: marking a type [Serializable] without implementing ISerializable imposes a serialization contract -- it is a promise to never change the type's fields i.e. the type is immutable; adding new fields in the next version of the type without following certain special FX guidelines, can break both forward and backward compatibility

Constructors

BuildMessageEventArgs()

Default constructor

BuildMessageEventArgs(String, String, String, Int32, Int32, Int32, Int32, String, String, String, MessageImportance)

This constructor allows all event data to be initialized

BuildMessageEventArgs(String, String, String, Int32, Int32, Int32, Int32, String, String, String, MessageImportance, DateTime)

This constructor allows timestamp to be set

BuildMessageEventArgs(String, String, String, Int32, Int32, Int32, Int32, String, String, String, MessageImportance, DateTime, Object[])

This constructor allows timestamp to be set

BuildMessageEventArgs(String, String, String, MessageImportance)

This constructor allows all event data to be initialized

BuildMessageEventArgs(String, String, String, MessageImportance, DateTime)

This constructor allows a timestamp to be set

BuildMessageEventArgs(String, String, String, MessageImportance, DateTime, Object[])

This constructor allows a timestamp to be set

Fields

locker

Lock object.

(Inherited from LazyFormattedBuildEventArgs)

Properties

BuildEventContext

Event contextual information for the build event argument

(Inherited from 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

Custom help keyword associated with event.

(Inherited from BuildEventArgs)
Importance

Importance of the message

LineNumber

Line number of interest in associated file.

Message

Gets the formatted message.

(Inherited from LazyFormattedBuildEventArgs)
Message

Text of event.

(Inherited from BuildEventArgs)
ProjectFile

The project which was building when the message was issued.

RawMessage

Exposes the underlying message field without side-effects. Used for serialization.

(Inherited from BuildEventArgs)
RawTimestamp

Exposes the private Microsoft.Build.Framework.BuildEventArgs.timestamp field to derived types. Used for serialization. Avoids the side effects of calling the Timestamp getter.

(Inherited from BuildEventArgs)
SenderName

Name of the object sending this event.

(Inherited from BuildEventArgs)
Subcategory

The custom sub-type of the event.

ThreadId

The thread that raised event.

(Inherited from BuildEventArgs)
Timestamp

The time when event was raised.

(Inherited from BuildEventArgs)

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to