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.ApplicationModelAssembly: Spotfire.Dxp.Framework (in Spotfire.Dxp.Framework.dll) Version: 18.10.8513.5432 (18.10.8513.5432)
Syntax
Parameters
- title
- Type: System String
A user-friendly representation of what the sub task performs. May not be null.
- operation
- Type: Spotfire.Dxp.Framework.ApplicationModel ProgressOperation
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
Exception | Condition |
---|---|
System ArgumentNullException | If either title or operation is null. |
Examples
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
See Also