TaskFinishedEventArgs Constructors

Definition

Initializes a new instance of the TaskFinishedEventArgs class.

Overloads

TaskFinishedEventArgs()

Default constructor

TaskFinishedEventArgs(String, String, String, String, String, Boolean)

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

TaskFinishedEventArgs(String, String, String, String, String, Boolean, DateTime)

This constructor allows event data to be initialized and the timestamp to be set Sender is assumed to be "MSBuild".

TaskFinishedEventArgs()

Source:
TaskFinishedEventArgs.cs

Default constructor

C#
protected TaskFinishedEventArgs();
C#
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
protected TaskFinishedEventArgs();
Attributes

Applies to

.NET Framework 4.8.1 e outras versións
Produto Versións
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

TaskFinishedEventArgs(String, String, String, String, String, Boolean)

Source:
TaskFinishedEventArgs.cs

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

C#
public TaskFinishedEventArgs(string message, string helpKeyword, string projectFile, string taskFile, string taskName, bool succeeded);

Parameters

message
String

text message

helpKeyword
String

help keyword

projectFile
String

project file

taskFile
String

file in which the task is defined

taskName
String

task name

succeeded
Boolean

true indicates task succeed

Applies to

.NET Framework 4.8.1 e outras versións
Produto Versións
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

TaskFinishedEventArgs(String, String, String, String, String, Boolean, DateTime)

Source:
TaskFinishedEventArgs.cs

This constructor allows event data to be initialized and the timestamp to be set Sender is assumed to be "MSBuild".

C#
public TaskFinishedEventArgs(string message, string helpKeyword, string projectFile, string taskFile, string taskName, bool succeeded, DateTime eventTimestamp);

Parameters

message
String

text message

helpKeyword
String

help keyword

projectFile
String

project file

taskFile
String

file in which the task is defined

taskName
String

task name

succeeded
Boolean

true indicates task succeed

eventTimestamp
DateTime

Timestamp when event was created

Applies to

.NET Framework 4.8.1 e outras versións
Produto Versións
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1