Rediger

Del via


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>

Properties

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.

Methods

Abort()

Aborts the operation.

(Inherited from DispatcherOperation)
Equals(Object)

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

(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()

Gets the Type of the current instance.

(Inherited from Object)
InvokeDelegateCore()

Begins the operation that is associated with this DispatcherOperation.

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)

Events

Aborted

Occurs when the operation is aborted.

(Inherited from DispatcherOperation)
Completed

Occurs when the operation has completed.

(Inherited from DispatcherOperation)

Applies to