TaskCommandLineEventArgs Class

Definition

Provides data for the MessageRaised event.

public ref class TaskCommandLineEventArgs : Microsoft::Build::Framework::BuildMessageEventArgs
[System.Serializable]
public class TaskCommandLineEventArgs : Microsoft.Build.Framework.BuildMessageEventArgs
type TaskCommandLineEventArgs = class
    inherit BuildMessageEventArgs
Public Class TaskCommandLineEventArgs
Inherits BuildMessageEventArgs
Inheritance
Inheritance
Attributes

Remarks

TaskCommandLineEventArgs extends BuildMessageEventArgs so that the command line string used by a task to execute an underlying program can be logged as a message. Logging a command line string is only relevant for tasks that wrap an underlying program or emulate a shell command. Tasks that have no command line equivalent should not raise this extended message event.

Constructors

TaskCommandLineEventArgs()

Initializes a new instance of the TaskCommandLineEventArgs class.

TaskCommandLineEventArgs(String, String, MessageImportance)

Initializes a new instance of the TaskCommandLineEventArgs class with the specified command line and MessageImportance.

TaskCommandLineEventArgs(String, String, MessageImportance, DateTime)

Initializes a new instance of the TaskCommandLineEventArgs class with the specified command line, task name and MessageImportance.

Properties

BuildEventContext

Gets or sets location contextual information. This is attached to logging events to define where they are located in relation to the process, engine, project, target, or task that is executing.

(Inherited from BuildEventArgs)
Code

Code associated with event.

(Inherited from BuildMessageEventArgs)
ColumnNumber

Column number of interest in associated file.

(Inherited from BuildMessageEventArgs)
CommandLine

Gets the command line used by the task to run the underlying program.

EndColumnNumber

Ending column number of interest in associated file.

(Inherited from BuildMessageEventArgs)
EndLineNumber

Ending line number of interest in associated file.

(Inherited from BuildMessageEventArgs)
File

File associated with event.

(Inherited from BuildMessageEventArgs)
HelpKeyword

Gets the Help keyword for the event.

(Inherited from BuildEventArgs)
Importance

Gets the importance of the event.

(Inherited from BuildMessageEventArgs)
LineNumber

Line number of interest in associated file.

(Inherited from BuildMessageEventArgs)
Message

Gets the message for the event.

(Inherited from BuildEventArgs)
Message

Gets the formatted message.

(Inherited from LazyFormattedBuildEventArgs)
ProjectFile

The project which was building when the message was issued.

(Inherited from BuildMessageEventArgs)
SenderName

Gets the name of the Object raising the event.

(Inherited from BuildEventArgs)
Subcategory

The custom sub-type of the event.

(Inherited from BuildMessageEventArgs)
TaskName

Gets the name of the task that raised the event.

ThreadId

Gets an integer identifier for the thread that raised the event.

(Inherited from BuildEventArgs)
Timestamp

Gets the time the event was raised as a DateTime.

(Inherited from BuildEventArgs)

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to