TaskExecutionLogEntryEventArgs 构造函数

定义

使用指定的任务、消息、错误和 logEntryType 参数初始化 TaskExecutionLogEntryEventArgs 类的新实例。

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)

参数

task
ITask

表示任务的接口。

message
String

一个表示消息的字符串。

error
Exception

异常消息。

logEntryType
TaskExecutionLogEntryType

要使用的 logEntry 类型。

适用于