TaskExecutionLogEntryEventArgs(ITask, String, Exception, TaskExecutionLogEntryType) Constructor

Definition

Initializes a new instance of the TaskExecutionLogEntryEventArgs class with the specified task, message, error, and logEntryType parameter.

public:
 TaskExecutionLogEntryEventArgs(Microsoft::SqlServer::Management::ITask ^ task, System::String ^ message, Exception ^ error, Microsoft::SqlServer::Management::TaskExecutionLogEntryType logEntryType);
public TaskExecutionLogEntryEventArgs (Microsoft.SqlServer.Management.ITask task, string message, Exception error, Microsoft.SqlServer.Management.TaskExecutionLogEntryType logEntryType);
new Microsoft.SqlServer.Management.TaskForms.TaskExecutionLogEntryEventArgs : Microsoft.SqlServer.Management.ITask * string * Exception * Microsoft.SqlServer.Management.TaskExecutionLogEntryType -> Microsoft.SqlServer.Management.TaskForms.TaskExecutionLogEntryEventArgs
Public Sub New (task As ITask, message As String, error As Exception, logEntryType As TaskExecutionLogEntryType)

Parameters

task
ITask

An interface that represents the task.

message
String

A string that represents the message.

error
Exception

The exception message.

logEntryType
TaskExecutionLogEntryType

The type of logEntry to use.

Applies to