Class DispatcherOperation
public class DispatcherOperation
- Inheritance
-
DispatcherOperation
- Derived
- Inherited Members
Fields
Callback
protected object? Callback
Field Value
TaskSource
protected object? TaskSource
Field Value
ThrowOnUiThread
protected readonly bool ThrowOnUiThread
Field Value
Properties
Dispatcher
public Dispatcher Dispatcher { get; }
Property Value
Priority
public DispatcherPriority Priority { get; set; }
Property Value
Status
public DispatcherOperationStatus Status { get; protected set; }
Property Value
Methods
Abort()
public bool Abort()
Returns
AbortTask()
protected virtual void AbortTask()
GetTask()
public Task GetTask()
Returns
GetTaskCore()
protected virtual Task GetTaskCore()
Returns
InvokeCore()
protected virtual void InvokeCore()
Wait()
Waits for this operation to complete.
public void Wait()
Wait(TimeSpan)
Waits for this operation to complete.
public void Wait(TimeSpan timeout)
Parameters
timeout
TimeSpanThe maximum amount of time to wait.
Events
Aborted
An event that is raised when the operation is aborted or canceled.
public event EventHandler Aborted
Event Type
Completed
An event that is raised when the operation completes.
public event EventHandler Completed
Event Type
Remarks
Completed indicates that the operation was invoked and has either completed successfully or faulted. Note that a canceled or aborted operation is never is never considered completed.