Dispatcher​Operation<​TResult> Class

Definition

Represents an object that is used to interact with an operation that has been posted to the Dispatcher queue and contains a Task<TResult>.

public class DispatcherOperation<TResult> : System.Windows.Threading.DispatcherOperation
Type Parameters
TResult

The type that is returned by the Task<TResult>.

Inheritance
DispatcherOperation<TResult>

Inherited Members

System.Object

System.Windows.Threading.DispatcherOperation

Properties

Result

Gets the result of the operation after it has completed.

Task

Gets a Task<TResult> that represents the current operation.

Methods

Get​Awaiter()

Returns an object that awaits an asynchronous operation that returns a result.

Invoke​Delegate​Core()

Begins the operation that is associated with this DispatcherOperation.