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
Exception | Condition |
---|---|
ArgumentNullException | If either title or operation is null. |
Examples
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
See Also