DispatcherOperation(TResult) Class

DispatcherOperation<TResult> Class

.NET Framework (current version)
 

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

Namespace:   System.Windows.Threading
Assembly:  WindowsBase (in WindowsBase.dll)

System.Object
  System.Windows.Threading.DispatcherOperation
    System.Windows.Threading.DispatcherOperation<TResult>

public class DispatcherOperation<TResult> : DispatcherOperation

Type Parameters

TResult

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

NameDescription
System_CAPS_pubpropertyDispatcher

Gets the Dispatcher that the operation was posted to. (Inherited from DispatcherOperation.)

System_CAPS_pubpropertyPriority

Gets or sets the priority of the operation in the Dispatcher queue. (Inherited from DispatcherOperation.)

System_CAPS_pubpropertyResult

Gets the result of the operation after it has completed.

System_CAPS_pubpropertyStatus

Gets the current status of the operation..(Inherited from DispatcherOperation.)

System_CAPS_pubpropertyTask

Gets a T:System.Threading.Task`1 that represents the current operation.

NameDescription
System_CAPS_pubmethodAbort()

Aborts the operation. (Inherited from DispatcherOperation.)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetAwaiter()

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

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodInvokeDelegateCore()

Begins the operation that is associated with this DispatcherOperation.(Overrides DispatcherOperation.InvokeDelegateCore().)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodWait()

Waits for the operation to complete(Inherited from DispatcherOperation.)

System_CAPS_pubmethodWait(TimeSpan)

Waits for the operation to complete in the specified period of time.(Inherited from DispatcherOperation.)

NameDescription
System_CAPS_pubeventAborted

Occurs when the operation is aborted.(Inherited from DispatcherOperation.)

System_CAPS_pubeventCompleted

Occurs when the operation has completed. (Inherited from DispatcherOperation.)

.NET Framework
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.

Return to top
Show:
© 2016 Microsoft