共用方式為


CustomBuildEventArgs Class

Definition

Arguments for custom build events.

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

Remarks

Warning

In .NET 8 and later and Visual Studio 17.8 and later, this type is deprecated; instead use ExtendedCustomBuildEventArgs. For more information, see MSBuild custom derived build events deprecated.

Constructors

CustomBuildEventArgs()

Default constructor

CustomBuildEventArgs(String, String, String, DateTime, Object[])

This constructor allows event data to be initialized including timestamp.

CustomBuildEventArgs(String, String, String, DateTime)

This constructor allows event data to be initialized including timestamp.

CustomBuildEventArgs(String, String, String)

This constructor allows event data to be initialized.

Fields

locker

Lock object.

(Inherited from LazyFormattedBuildEventArgs)

Properties

BuildEventContext

Event contextual information for the build event argument

(Inherited from BuildEventArgs)
HelpKeyword

Custom help keyword associated with event.

(Inherited from BuildEventArgs)
Message

Gets the formatted message.

(Inherited from LazyFormattedBuildEventArgs)
Message

Text of event.

(Inherited from BuildEventArgs)
RawMessage

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

(Inherited from BuildEventArgs)
RawTimestamp

Exposes the private 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)
ThreadId

The thread that raised event.

(Inherited from BuildEventArgs)
Timestamp

The time when event was raised.

(Inherited from BuildEventArgs)

Applies to