Class DispatcherOperation
- Namespace
- nanoFramework.UI.Threading
- Assembly
- nanoFramework.Graphics.dll
DispatcherOperation represents a delegate that has been posted to the Dispatcher queue.
public sealed class DispatcherOperation
- Inheritance
-
DispatcherOperation
- Inherited Members
- Extension Methods
Properties
Dispatcher
Returns the Dispatcher that this operation was posted to.
public Dispatcher Dispatcher { get; }
Property Value
Result
Returns the result of the operation if it has completed.
public object Result { get; }
Property Value
Status
The status of this operation.
public DispatcherOperationStatus Status { get; }
Property Value
Methods
Abort()
Aborts this operation.
public bool Abort()
Returns
- bool
False if the operation could not be aborted (because the operation was already in progress)
Wait()
Waits for this operation to complete.
public DispatcherOperationStatus Wait()
Returns
- DispatcherOperationStatus
The status of the operation. To obtain the return value of the invoked delegate, use the the Result property.
Wait(TimeSpan)
Waits for this operation to complete.
public DispatcherOperationStatus Wait(TimeSpan timeout)
Parameters
timeout
TimeSpanThe maximum amount of time to wait.
Returns
- DispatcherOperationStatus
The status of the operation. To obtain the return value of the invoked delegate, use the the Result property.
Events
Aborted
An event that is raised when the operation is aborted.
public event EventHandler Aborted
Event Type
Completed
An event that is raised when the operation completes.
public event EventHandler Completed