TaskCommandLineEventArgs Class

 

Provides data for the MessageRaised event.

Namespace:   Microsoft.Build.Framework
Assembly:  Microsoft.Build.Framework (in Microsoft.Build.Framework.dll)

System.Object
  System.EventArgs
    Microsoft.Build.Framework.BuildEventArgs
      Microsoft.Build.Framework.LazyFormattedBuildEventArgs
        Microsoft.Build.Framework.BuildMessageEventArgs
          Microsoft.Build.Framework.TaskCommandLineEventArgs

[SerializableAttribute]
public class TaskCommandLineEventArgs : BuildMessageEventArgs

NameDescription
System_CAPS_protmethodTaskCommandLineEventArgs()

Initializes a new instance of the TaskCommandLineEventArgs class.

System_CAPS_pubmethodTaskCommandLineEventArgs(String, String, MessageImportance)

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

System_CAPS_pubmethodTaskCommandLineEventArgs(String, String, MessageImportance, DateTime)

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

NameDescription
System_CAPS_pubpropertyBuildEventContext

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

System_CAPS_pubpropertyCode

Code associated with event.(Inherited from BuildMessageEventArgs.)

System_CAPS_pubpropertyColumnNumber

Column number of interest in associated file.(Inherited from BuildMessageEventArgs.)

System_CAPS_pubpropertyCommandLine

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

System_CAPS_pubpropertyEndColumnNumber

Ending column number of interest in associated file.(Inherited from BuildMessageEventArgs.)

System_CAPS_pubpropertyEndLineNumber

Ending line number of interest in associated file.(Inherited from BuildMessageEventArgs.)

System_CAPS_pubpropertyFile

File associated with event.(Inherited from BuildMessageEventArgs.)

System_CAPS_pubpropertyHelpKeyword

Gets the Help keyword for the event.(Inherited from BuildEventArgs.)

System_CAPS_pubpropertyImportance

Gets the importance of the event.(Inherited from BuildMessageEventArgs.)

System_CAPS_pubpropertyLineNumber

Line number of interest in associated file.(Inherited from BuildMessageEventArgs.)

System_CAPS_pubpropertyMessage

Gets the formatted message.(Inherited from LazyFormattedBuildEventArgs.)

System_CAPS_pubpropertyProjectFile

The project which was building when the message was issued.(Inherited from BuildMessageEventArgs.)

System_CAPS_pubpropertySenderName

Gets the name of the Object raising the event.(Inherited from BuildEventArgs.)

System_CAPS_pubpropertySubcategory

The custom sub-type of the event.(Inherited from BuildMessageEventArgs.)

System_CAPS_pubpropertyTaskName

Gets the name of the task that raised the event.

System_CAPS_pubpropertyThreadId

Gets an integer identifier for the thread that raised the event.(Inherited from BuildEventArgs.)

System_CAPS_pubpropertyTimestamp

Gets the time the event was raised as a DateTime.(Inherited from BuildEventArgs.)

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

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.

.NET Framework
Available since 2.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: