ISimpleWorkItem Interface
Represents the work item that doesn't require any additional user input except context it is executed in.
Namespace: Microsoft.SqlServer.Management.TaskForms
Assembly: Microsoft.SqlServer.Management.SDK.SqlStudio (in Microsoft.SqlServer.Management.SDK.SqlStudio.dll)
The ISimpleWorkItem type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Excluded | Gets whether the current work item should be excluded from processing. |
![]() | ExecutionError | Gets the detailed error information. |
![]() | ExecutionErrorMessage | Gets the error message. |
![]() | Name | Gets the work item display name. |
![]() | State | Gets the work item state. |
![]() | StateImage | Gets the image representing state. |
![]() | StateText | Gets the localized state text. |
| Name | Description | |
|---|---|---|
![]() | Abort | Aborts the work item. |
![]() | Initialize | Initializes the work item using provided context. If context is incompatible with work item type, Initialize can return false and this item would be ignored. |
![]() | Reset | Resets the work item into pending state. |
![]() | Run | Executes the work item. |
![]() | Script | Scripts the work item. |

