TaskCommandLineEventArgs Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the TaskCommandLineEventArgs class.
Overloads
TaskCommandLineEventArgs() |
Default (family) constructor. |
TaskCommandLineEventArgs(String, String, MessageImportance) |
Creates an instance of this class for the given task command line. |
TaskCommandLineEventArgs(String, String, MessageImportance, DateTime) |
Creates an instance of this class for the given task command line. This constructor allows the timestamp to be set |
TaskCommandLineEventArgs()
- Source:
- TaskCommandLineEventArgs.cs
Default (family) constructor.
protected:
TaskCommandLineEventArgs();
protected TaskCommandLineEventArgs ();
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
protected TaskCommandLineEventArgs ();
Protected Sub New ()
- Attributes
Applies to
TaskCommandLineEventArgs(String, String, MessageImportance)
- Source:
- TaskCommandLineEventArgs.cs
Creates an instance of this class for the given task command line.
public:
TaskCommandLineEventArgs(System::String ^ commandLine, System::String ^ taskName, Microsoft::Build::Framework::MessageImportance importance);
public TaskCommandLineEventArgs (string commandLine, string taskName, Microsoft.Build.Framework.MessageImportance importance);
new Microsoft.Build.Framework.TaskCommandLineEventArgs : string * string * Microsoft.Build.Framework.MessageImportance -> Microsoft.Build.Framework.TaskCommandLineEventArgs
Public Sub New (commandLine As String, taskName As String, importance As MessageImportance)
Parameters
- commandLine
- String
The command line used by a task to launch its underlying tool/executable.
- taskName
- String
The name of the task raising this event.
- importance
- MessageImportance
Importance of command line -- controls whether the command line will be displayed by less verbose loggers.
Applies to
TaskCommandLineEventArgs(String, String, MessageImportance, DateTime)
- Source:
- TaskCommandLineEventArgs.cs
Creates an instance of this class for the given task command line. This constructor allows the timestamp to be set
public:
TaskCommandLineEventArgs(System::String ^ commandLine, System::String ^ taskName, Microsoft::Build::Framework::MessageImportance importance, DateTime eventTimestamp);
public TaskCommandLineEventArgs (string commandLine, string taskName, Microsoft.Build.Framework.MessageImportance importance, DateTime eventTimestamp);
new Microsoft.Build.Framework.TaskCommandLineEventArgs : string * string * Microsoft.Build.Framework.MessageImportance * DateTime -> Microsoft.Build.Framework.TaskCommandLineEventArgs
Public Sub New (commandLine As String, taskName As String, importance As MessageImportance, eventTimestamp As DateTime)
Parameters
- commandLine
- String
The command line used by a task to launch its underlying tool/executable.
- taskName
- String
The name of the task raising this event.
- importance
- MessageImportance
Importance of command line -- controls whether the command line will be displayed by less verbose loggers.
- eventTimestamp
- DateTime
Timestamp when the event was created