TaskExecutionLogEntryEventArgs 建構函式

定義

初始化一個新實例 TaskExecutionLogEntryEventArgs ,使用指定的任務、訊息、錯誤及 logEntryType 參數。

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。

適用於