Update Method (JobState)
- Last UpdatedNov 06, 2025
- 1 minute read
The Update() method updates all columns for the specified job or step state record in the Job_State table.
'Declaration
Public Shared Sub Update( _
ByVal sessionId As Integer, _
ByVal stateCode As Integer, _
ByVal stateDescription As String, _
ByVal color As Integer, _
ByVal lastEditComment As DBString, _
ByRef lastEditAt As Date _
)
public static void Update(
int sessionId,
int stateCode,
string stateDescription,
int color,
DBString lastEditComment,
ref DateTime lastEditAt
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- stateCode
- Required. Holds the code of the job or step state.
- stateDescription
- Required. Holds the description of the job or step state.
- color
- Required. Holds an RGB color code value of the job or step state.
- lastEditComment
- Required. Holds comments that describe why this record is being updated.
- lastEditAt
Required. Holds the date/time when this record was added or last edited, for optimistic concurrency control. The passed value must match the lastEditAt value in the record for the update to succeed.
Output. Holds the date/time value when this record was updated by this called method.