DispatcherOperation<TResult> Class
.NET Framework 4.5
Represents an object that is used to interact with an operation that has been posted to the Dispatcher queue and contains a Task<TResult>.
System.Object
System.Windows.Threading.DispatcherOperation
System.Windows.Threading.DispatcherOperation<TResult>
System.Windows.Threading.DispatcherOperation
System.Windows.Threading.DispatcherOperation<TResult>
Namespace: System.Windows.Threading
Assembly: WindowsBase (in WindowsBase.dll)
Type Parameters
- TResult
The type that is returned by the Task<TResult>.
The DispatcherOperation<TResult> type exposes the following members.
| 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 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 a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | InvokeDelegateCore | Begins the operation that is associated with this DispatcherOperation. (Overrides DispatcherOperation.InvokeDelegateCore().) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | 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.) |
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.



