Edit

Share via


NotifyTaskCompletion<TResult> Class

Definition

Helper class to wrap around a Task to provide more information usable for UI databinding scenarios. As discussed in MSDN Magazine: https://msdn.microsoft.com/magazine/dn605875.

public sealed class NotifyTaskCompletion<TResult> : System.ComponentModel.INotifyPropertyChanged
type NotifyTaskCompletion<'Result> = class
    interface INotifyPropertyChanged
Public NotInheritable Class NotifyTaskCompletion(Of TResult)
Implements INotifyPropertyChanged

Type Parameters

TResult

Type of result returned by task.

Inheritance
NotifyTaskCompletion<TResult>
Implements

Constructors

Properties

ErrorMessage

Gets the error message of the task.

Exception

Gets the exception which occured on the task (if one occurred).

InnerException

Gets the inner exception of the task.

IsCanceled

Gets a value indicating whether the task was cancelled.

IsCompleted

Gets a value indicating whether the task is completed.

IsFaulted

Gets a value indicating whether there was an error with the task.

IsNotCompleted

Gets a value indicating whether the task is not completed.

IsSuccessfullyCompleted

Gets a value indicating whether the task was successfully completed.

Result

Gets the result of the given task.

Status

Gets the status of the task.

Task

Gets the task that is being waited on.

TaskCompletion

Gets the task wrapper task.

Events

PropertyChanged

PropertyChanged event.

Applies to