DispatcherOperation<TResult> DispatcherOperation<TResult> DispatcherOperation<TResult> DispatcherOperation<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>.

generic <typename TResult>
public ref class DispatcherOperation : System::Windows::Threading::DispatcherOperation
public class DispatcherOperation<TResult> : System.Windows.Threading.DispatcherOperation
type DispatcherOperation<'Result> = class
    inherit DispatcherOperation
Public Class DispatcherOperation(Of TResult)
Inherits DispatcherOperation
Type Parameters
TResult

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

Inheritance
DispatcherOperation<TResult>DispatcherOperation<TResult>DispatcherOperation<TResult>DispatcherOperation<TResult>

Properties

Dispatcher Dispatcher Dispatcher Dispatcher

Gets the Dispatcher that the operation was posted to.

(Inherited from DispatcherOperation)
Priority Priority Priority Priority

Gets or sets the priority of the operation in the Dispatcher queue.

(Inherited from DispatcherOperation)
Result Result Result Result

Gets the result of the operation after it has completed.

Status Status Status Status

Gets the current status of the operation..

(Inherited from DispatcherOperation)
Task Task Task Task

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

Methods

Abort() Abort() Abort() Abort()

Aborts the operation.

(Inherited from DispatcherOperation)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetAwaiter() GetAwaiter() GetAwaiter() GetAwaiter()

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

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
InvokeDelegateCore() InvokeDelegateCore() InvokeDelegateCore() InvokeDelegateCore()

Begins the operation that is associated with this DispatcherOperation.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
Wait() Wait() Wait() Wait()

Waits for the operation to complete

(Inherited from DispatcherOperation)
Wait(TimeSpan) Wait(TimeSpan) Wait(TimeSpan) Wait(TimeSpan)

Waits for the operation to complete in the specified period of time.

(Inherited from DispatcherOperation)

Events

Aborted Aborted Aborted Aborted

Occurs when the operation is aborted.

(Inherited from DispatcherOperation)
Completed Completed Completed Completed

Occurs when the operation has completed.

(Inherited from DispatcherOperation)

Applies to