다음을 통해 공유


TaskCommandLineEventArgs Constructor (String, String, MessageImportance)

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

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

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

Syntax

'Declaration
Public Sub New ( _
    commandLine As String, _
    taskName As String, _
    importance As MessageImportance _
)
public TaskCommandLineEventArgs(
    string commandLine,
    string taskName,
    MessageImportance importance
)
public:
TaskCommandLineEventArgs(
    String^ commandLine, 
    String^ taskName, 
    MessageImportance importance
)
new : 
        commandLine:string * 
        taskName:string * 
        importance:MessageImportance -> TaskCommandLineEventArgs
public function TaskCommandLineEventArgs(
    commandLine : String, 
    taskName : String, 
    importance : MessageImportance
)

Parameters

  • commandLine
    Type: System.String

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

  • taskName
    Type: System.String

    The name of the task raising the event.

.NET Framework Security

See Also

Reference

TaskCommandLineEventArgs Class

TaskCommandLineEventArgs Overload

Microsoft.Build.Framework Namespace