Home > @i2analyze/i2connect > IAsyncState > addSubstatus
IAsyncState.addSubstatus() method
Provides a piece of information about the progress of the long-running operation to the user.
Signature:
addSubstatus(type: SubstatusType, message: string): ISubstatus;
Introduced: API version 1.0
Parameters
Parameter | Type | Description |
---|---|---|
type | SubstatusType | The type of the substatus. |
message | string | The message associated with the substatus. |
Returns:
The substatus that was added to the IAsyncState
object.
Remarks
Substatuses make extra information available to the client. By polling the server during execution, the client can display the information to users. As well as adding substatus information, you can also update previously provided information by editing the object that this method returns.