TaskExecutionLogEntryEventArgs 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用指定的任务、消息、错误和 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 类型。