TaskExecutionContext Class
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.
Manages the execution context for the current task.
public ref class TaskExecutionContext : Microsoft::SqlServer::Management::ITaskExecutionContext
public class TaskExecutionContext : Microsoft.SqlServer.Management.ITaskExecutionContext
type TaskExecutionContext = class
interface ITaskExecutionContext
Public Class TaskExecutionContext
Implements ITaskExecutionContext
- Inheritance
-
TaskExecutionContext
- Implements
Constructors
TaskExecutionContext(ITaskManager) |
Initializes a new instance of the TaskExecutionContext class with the specified taskManager parameter. |
Properties
Context |
Gets the data that comes from the environment. |
DataBus |
Gets the data bus of the context. |
IsCancelable |
Gets or sets a value that indicates whether the task can be canceled. |
IsCancelRequested |
Gets a value that indicates whether there is a request to cancel the task. |
Moniker |
Gets the task moniker |
RuntimeProperties |
Gets the temporary storage used by the tasks. |
Methods
Log(ITask, Exception) |
Logs the progress of the task execution for the specified task and exception. |
Log(ITask, String) |
Logs the progress of the task execution. |
Log(ITask, String, Exception, TaskExecutionLogEntryType) |
Logs the progress of the task execution with the specified task, message, exception, and log entry type. |
Log(ITask, String, TaskExecutionLogEntryType) |
Logs the progress of the task execution with the specified task, message, and log entry type. |
ReportProgress(ITask, Int32, String) |
Reports the task progress. This class cannot be inherited. |
Events
CancelableChanged |
Occurs when IsCancelable changes. |
CancelRequested |
Occurs when IsCancelRequested changes. |
ExecutionProgress |
Occurs when the progress of executing the control is changed. |
LogEntry |
Occurs when the log entry of the control changed. |