TaskBase

Name Value
Assembly Catel.MVVM
Namespace Catel.MVVM.Tasks
Available on .NET Framework 4.5, .NET Framework 4.6, Portable Class Libraries, Xamarin - Android, Xamarin - iOS
public abstract class TaskBase : ITask, ModelBase

Base types ModelBase

Implements interfaces ITask

The task base.

Remarks

This class inherits from ModelBase in use it as model as part of the wizard view models.

Fields

AutomaticallyDispatchProperty

Register the AutomaticallyDispatch property so it is known in the class.

IsIndeterminatedProperty

Register the IsIndeterminate property so it is known in the class.

MessageProperty

Register the Message property so it is known in the class.

NameProperty

Register the Name property so it is known in the class.

PercentageProperty

Register the Percentage property so it is known in the class.

Constructors

TaskBase(string name)

Initializes a new instance of the TaskBase class.

Parameters

Name Description
name The task name name.

Exceptions

Name Description
ArgumentNullException The name isnull.

Properties

AutomaticallyDispatch

Gets or sets whether this task should automatically be dispatched to the UI thread.

IsIndeterminate

Indicates whether the task progress is indeterminated

Message

Gets or sets the message.

Name

Gets the name.

Percentage

Gets or sets the percentage.

Methods

Execute()

The execute.

Rollback()

The rollback.


Have a question about Catel? Use StackOverflow with the Catel tag!


Discussion