Interface IAsyncTaskState
Provides access to the state of the asynchronous task.
public interface IAsyncTaskState
Properties
IsCanceled
Gets a value indicating whether the asynchronous task is canceled.
bool IsCanceled { get; }
Property Value
- bool
true
if the asynchronous task is canceled; otherwise,false
.
Progress
Gets the progress of the asynchronous task.
EventType Progress { get; }
Property Value
- EventType
The progress of the asynchronous task.
Methods
IncrementProgressMaxValue(int)
Increments the progress maximum value.
void IncrementProgressMaxValue(int value)
Parameters
value
intThe increase value.
IndicateProgress(EventType)
Sets the progress of the asynchronous task.
void IndicateProgress(EventType eventType)
Parameters
eventType
EventTypeThe progress state.