DispatcherOperation<TResult> Class
Represents an object that is used to interact with an operation that has been posted to the Dispatcher queue and contains a Task<TResult>.
Assembly: WindowsBase (in WindowsBase.dll)
System.Windows.Threading::DispatcherOperation
System.Windows.Threading::DispatcherOperation<TResult>
Type Parameters
- TResult
The type that is returned by the Task<TResult>.
| Name | Description | |
|---|---|---|
![]() | Dispatcher | Gets the Dispatcher that the operation was posted to. (Inherited from DispatcherOperation.) |
![]() | Priority | Gets or sets the priority of the operation in the Dispatcher queue. (Inherited from DispatcherOperation.) |
![]() | Result | Gets the result of the operation after it has completed. |
![]() | Status | Gets the current status of the operation..(Inherited from DispatcherOperation.) |
![]() | Task | Gets a Task<TResult> that represents the current operation. |
| Name | Description | |
|---|---|---|
![]() | Abort() | Aborts the operation. (Inherited from DispatcherOperation.) |
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | GetAwaiter() | Returns an object that awaits an asynchronous operation that returns a result. |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | InvokeDelegateCore() | Begins the operation that is associated with this DispatcherOperation.(Overrides DispatcherOperation::InvokeDelegateCore().) |
![]() | MemberwiseClone() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
![]() | Wait() | Waits for the operation to complete(Inherited from DispatcherOperation.) |
![]() | Wait(TimeSpan) | Waits for the operation to complete in the specified period of time.(Inherited from DispatcherOperation.) |
| Name | Description | |
|---|---|---|
![]() | Aborted | Occurs when the operation is aborted.(Inherited from DispatcherOperation.) |
![]() | Completed | Occurs when the operation has completed. (Inherited from DispatcherOperation.) |
Available since 4.5
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



