다음을 통해 공유


TargetFinishedEventArgs Constructors

Definition

Initializes a new instance of the TargetFinishedEventArgs class.

Overloads

TargetFinishedEventArgs()

Default constructor

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

This constructor allows event data to be initialized. 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, 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()

Source:
TargetFinishedEventArgs.cs

Default constructor

protected:
 TargetFinishedEventArgs();
protected TargetFinishedEventArgs ();
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
protected TargetFinishedEventArgs ();
Protected Sub New ()
Attributes

Applies to

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

Source:
TargetFinishedEventArgs.cs

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

public:
 TargetFinishedEventArgs(System::String ^ message, System::String ^ helpKeyword, System::String ^ targetName, System::String ^ projectFile, System::String ^ targetFile, bool succeeded);
public TargetFinishedEventArgs (string message, string helpKeyword, string targetName, string projectFile, string targetFile, bool succeeded);
new Microsoft.Build.Framework.TargetFinishedEventArgs : string * string * string * string * string * bool -> Microsoft.Build.Framework.TargetFinishedEventArgs
Public Sub New (message As String, helpKeyword As String, targetName As String, projectFile As String, targetFile As String, succeeded As Boolean)

Parameters

message
String

text message

helpKeyword
String

help keyword

targetName
String

target name

projectFile
String

project file

targetFile
String

file in which the target is defined

succeeded
Boolean

true if target built successfully

Applies to

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

Source:
TargetFinishedEventArgs.cs

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

public:
 TargetFinishedEventArgs(System::String ^ message, System::String ^ helpKeyword, System::String ^ targetName, System::String ^ projectFile, System::String ^ targetFile, bool succeeded, System::Collections::IEnumerable ^ targetOutputs);
public TargetFinishedEventArgs (string message, string helpKeyword, string targetName, string projectFile, string targetFile, bool succeeded, System.Collections.IEnumerable targetOutputs);
new Microsoft.Build.Framework.TargetFinishedEventArgs : string * string * string * string * string * bool * System.Collections.IEnumerable -> Microsoft.Build.Framework.TargetFinishedEventArgs
Public Sub New (message As String, helpKeyword As String, targetName As String, projectFile As String, targetFile As String, succeeded As Boolean, targetOutputs As IEnumerable)

Parameters

message
String

text message

helpKeyword
String

help keyword

targetName
String

target name

projectFile
String

project file

targetFile
String

file in which the target is defined

succeeded
Boolean

true if target built successfully

targetOutputs
IEnumerable

Target output items for the target. If batching will be null for everything except for the last target in the batch

Applies to

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

Source:
TargetFinishedEventArgs.cs

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

public:
 TargetFinishedEventArgs(System::String ^ message, System::String ^ helpKeyword, System::String ^ targetName, System::String ^ projectFile, System::String ^ targetFile, bool succeeded, DateTime eventTimestamp, System::Collections::IEnumerable ^ targetOutputs);
public TargetFinishedEventArgs (string message, string helpKeyword, string targetName, string projectFile, string targetFile, bool succeeded, DateTime eventTimestamp, System.Collections.IEnumerable targetOutputs);
new Microsoft.Build.Framework.TargetFinishedEventArgs : string * string * string * string * string * bool * DateTime * System.Collections.IEnumerable -> Microsoft.Build.Framework.TargetFinishedEventArgs
Public Sub New (message As String, helpKeyword As String, targetName As String, projectFile As String, targetFile As String, succeeded As Boolean, eventTimestamp As DateTime, targetOutputs As IEnumerable)

Parameters

message
String

text message

helpKeyword
String

help keyword

targetName
String

target name

projectFile
String

project file

targetFile
String

file in which the target is defined

succeeded
Boolean

true if target built successfully

eventTimestamp
DateTime

Timestamp when the event was created

targetOutputs
IEnumerable

An IEnumerable containing the outputs of the target.

Applies to