Sdílet prostřednictvím


TargetFinishedEventArgs Class

Definition

Arguments for target finished events

public ref class TargetFinishedEventArgs : Microsoft::Build::Framework::BuildStatusEventArgs
[System.Serializable]
public class TargetFinishedEventArgs : Microsoft.Build.Framework.BuildStatusEventArgs
[<System.Serializable>]
type TargetFinishedEventArgs = class
    inherit BuildStatusEventArgs
Public Class TargetFinishedEventArgs
Inherits BuildStatusEventArgs
Inheritance
Inheritance
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

TargetFinishedEventArgs()

Default constructor

TargetFinishedEventArgs(String, String, String, String, String, Boolean, DateTime, IEnumerable)

This constructor allows event data to be initialized including the timestamp when the event was created. Sender is assumed to be "MSBuild".

TargetFinishedEventArgs(String, String, String, String, String, Boolean, IEnumerable)

This constructor allows event data to be initialized. Sender is assumed to be "MSBuild".

TargetFinishedEventArgs(String, String, String, String, String, Boolean)

This constructor allows event data to be initialized. Sender is assumed to be "MSBuild".

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
Message

Gets the formatted message.

(Inherited from LazyFormattedBuildEventArgs)
Message

Text of event.

(Inherited from BuildEventArgs)
ProjectFile

Project file associated with event.

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)
Succeeded

True if target built successfully, false otherwise

TargetFile

File where this target was declared.

TargetName

Target name

TargetOutputs

Target outputs

ThreadId

The thread that raised event.

(Inherited from BuildEventArgs)
Timestamp

The time when event was raised.

(Inherited from BuildEventArgs)

Applies to