ITaskAction.Action

Fore Syntax

Action(Antecedent: ITask): Variant;

Fore.NET Syntax

Action(Antecedent: Prognoz.Platform.Interop.ForeSystem.ITask): Object;

Parameters

Antecedent. The task, upon execution of which the current task was started.

Description

The Action method implements action that is executed when a task is run for execution.

Comments

This method must be redefined in the custom class. A task can be created and run in asynchronous mode within the action.

Value returned by this method is available in the Result property after the task is completed.

Example

The property use is given in description of the ITask.ContinueWith method.

See also:

ITaskAction