BuildFinishedEventArgs Constructors

Definition

Initializes a new instance of the BuildFinishedEventArgs class.

Overloads

BuildFinishedEventArgs()

Default constructor

BuildFinishedEventArgs(String, String, Boolean)

Constructor to initialize all parameters. Sender field cannot be set here and is assumed to be "MSBuild"

BuildFinishedEventArgs(String, String, Boolean, DateTime)

Constructor which allows the timestamp to be set

BuildFinishedEventArgs(String, String, Boolean, DateTime, Object[])

Constructor which allows the timestamp to be set

BuildFinishedEventArgs()

Source:
BuildFinishedEventArgs.cs

Default constructor

C#
protected BuildFinishedEventArgs();
C#
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
protected BuildFinishedEventArgs();
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

BuildFinishedEventArgs(String, String, Boolean)

Source:
BuildFinishedEventArgs.cs

Constructor to initialize all parameters. Sender field cannot be set here and is assumed to be "MSBuild"

C#
public BuildFinishedEventArgs(string message, string helpKeyword, bool succeeded);
C#
public BuildFinishedEventArgs(string? message, string? helpKeyword, bool succeeded);

Parameters

message
String

text message

helpKeyword
String

help keyword

succeeded
Boolean

True indicates a successful build

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

BuildFinishedEventArgs(String, String, Boolean, DateTime)

Source:
BuildFinishedEventArgs.cs

Constructor which allows the timestamp to be set

C#
public BuildFinishedEventArgs(string message, string helpKeyword, bool succeeded, DateTime eventTimestamp);
C#
public BuildFinishedEventArgs(string? message, string? helpKeyword, bool succeeded, DateTime eventTimestamp);
C#
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public BuildFinishedEventArgs(string message, string helpKeyword, bool succeeded, DateTime eventTimestamp);

Parameters

message
String

text message

helpKeyword
String

help keyword

succeeded
Boolean

True indicates a successful build

eventTimestamp
DateTime

Timestamp when the event was created

Attributes

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

BuildFinishedEventArgs(String, String, Boolean, DateTime, Object[])

Source:
BuildFinishedEventArgs.cs

Constructor which allows the timestamp to be set

C#
public BuildFinishedEventArgs(string message, string helpKeyword, bool succeeded, DateTime eventTimestamp, params object[] messageArgs);
C#
public BuildFinishedEventArgs(string? message, string? helpKeyword, bool succeeded, DateTime eventTimestamp, params object[]? messageArgs);

Parameters

message
String

text message

helpKeyword
String

help keyword

succeeded
Boolean

True indicates a successful build

eventTimestamp
DateTime

Timestamp when the event was created

messageArgs
Object[]

message arguments

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