IAsyncProgressNewT Method
Indicates that a new progress session is started that consists of maximumValue steps.
Namespace: KGySoft.ThreadingAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
void New<T>(
T operationType,
int maximumValue = 0,
int currentValue = 0
)
Sub New(Of T) (
operationType As T,
Optional maximumValue As Integer = 0,
Optional currentValue As Integer = 0
)
generic<typename T>
void New(
T operationType,
int maximumValue = 0,
int currentValue = 0
)
abstract New :
operationType : 'T *
?maximumValue : int *
?currentValue : int
(* Defaults:
let _maximumValue = defaultArg maximumValue 0
let _currentValue = defaultArg currentValue 0
*)
-> unit
- operationType T
- An instance of T that describes the type of the new operation.
- maximumValue Int32 (Optional)
- Specifies the possible maximum steps of the new operation (the Increment method is recommended to be called later on
if a parallel processing does not know or may reorder the current step). 0 means an operation with no separate steps. This parameter is optional.
Default value: 0. - currentValue Int32 (Optional)
- Specifies the initial current value for the new progress. Should be between 0 and maximumValue. This parameter is optional.
Default value: 0.
- T
- The type of the operationType parameter.