Marks the start of a new subtask.
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.
Exceptions
Exception | Condition |
---|---|
System ArgumentNullException | If title is null. |
Remarks
The extent of a subtask created through a call to this method is from the point of the method call to a point where either a new subtask is created through a call to this method or the parent subtask ends.
Examples
ProgressService progressService = GetService<ProgressService>(); progressService.ExecuteWithProgress("Opening File", delegate { // Do some work // ... ProgressService.CurrentProgress.CheckCancel(); // Mark the start of a new subtask, but inline the code ProgressService.CurrentProgress.ExecuteSubtask("Doing this"); // Do more work // ... ProgressService.CurrentProgress.CheckCancel(); ProgressService.CurrentProgress.ExecuteSubtask("Doing that"); // Do more work // ... ProgressService.CurrentProgress.CheckCancel(); }
Version Information
See Also