TaskCommandLineEventArgs Constructor (String, String, MessageImportance, DateTime)
Initializes a new instance of the TaskCommandLineEventArgs class with the specified command line, task name 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, _
eventTimestamp As DateTime _
)
public TaskCommandLineEventArgs(
string commandLine,
string taskName,
MessageImportance importance,
DateTime eventTimestamp
)
public:
TaskCommandLineEventArgs(
String^ commandLine,
String^ taskName,
MessageImportance importance,
DateTime eventTimestamp
)
new :
commandLine:string *
taskName:string *
importance:MessageImportance *
eventTimestamp:DateTime -> TaskCommandLineEventArgs
public function TaskCommandLineEventArgs(
commandLine : String,
taskName : String,
importance : MessageImportance,
eventTimestamp : DateTime
)
Parameters
commandLine
Type: System.StringThe command line used by the task to run the underlying program.
taskName
Type: System.StringThe name of the task raising the event.
importance
Type: Microsoft.Build.Framework.MessageImportanceThe MessageImportance of the message.
eventTimestamp
Type: System.DateTimeThe time the event occurred.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.
See Also
Reference
TaskCommandLineEventArgs Class