ProgressExecuteSubtask Method (String, ProgressOperation) TIBCO Spotfire 7.6 API Reference
Starts a new continuous subtask, that is, a subtask in which the extent of the operation is either not known or not of interest.

Namespace: Spotfire.Dxp.Framework.ApplicationModel
Assembly: Spotfire.Dxp.Framework (in Spotfire.Dxp.Framework.dll) Version: 25.11.10401.3615 (25.11.10401.3615)
Syntax

C#
public void ExecuteSubtask(
	string title,
	ProgressOperation operation
)

Parameters

title
Type: SystemString
A user-friendly representation of what the sub task performs. May not be null.
operation
Type: Spotfire.Dxp.Framework.ApplicationModelProgressOperation
The operation to execute. The operation may either be defined as an anonymous delegate or a local method wrapped in a ProgressOperation. This parameter may not be null.
Exceptions

ExceptionCondition
ArgumentNullException If either title or operation is null.
Examples

Use this method as follows:
C#
ProgressService progressService = GetService<ProgressService>();
progressService.ExecuteWithProgress("Opening File",
    delegate
    {
        // Do some work
        // ...

        ProgressService.CurrentProgress.ExecuteSubtask("Sub task",
            delegate
            {
                // Do something
                // ...

                ProgressService.CurrentProgress.CheckCancel();
            });

        // Do more work
        // ...
    }
Version Information

Supported in: 7.6, 7.5, 7.0, 6.5, 6.0, 5.5, 5.0
See Also

Reference