Property | Type | Description | |
---|---|---|---|
Completed | void |
Method | Description | |
---|---|---|
BeginExecute ( ) : void |
Method to start running this task asynchronously. This can only be used if the enum TaskHandler.Background was specified to the constructor of the class.
|
|
Cancel ( ) : void |
This method cancels the task. This only works for TaskHandlers of type background.
|
|
Execute ( ) : void |
Method to start running this task synchronously, either on the current thread or on the GUI thread. This can only be used if the enum TaskHandler.Dispatcher or TaskHandler.ThisThread was specified to the constructor.
|
|
Task ( |
Constructor for the task.
|
Method | Description | |
---|---|---|
Execute ( Object sender, |
Abstract method to be overridden that represents the work being done by the task.
|
|
ReportProgress ( |
Method used to report the progress being done by the task.
|
Method | Description | |
---|---|---|
Completed ( Object sender, |
protected abstract Execute ( Object sender, |
||
sender | Object | |
args | ||
return | void |
protected ReportProgress ( |
||
percent | An Int32 representing the progress. | |
userState | Object | An arbitary userState object to describe the state of the operation. |
return | void |
public Task ( |
||
dispatcher | ||
handler | TaskHandler | Is an enum representing how this task should be executed. |
return | System |