UpdateUtilState Method
- Last UpdatedNov 06, 2025
- 1 minute read
The UpdateUtilState() method updates the data of the specified utilization state and includes a lastEditAt DateTime parameter that can be used for optimistic concurrency control.
'Declaration
Public Shared Function UpdateUtilState( _
ByVal stateCd As String, _
ByVal stateDesc As String, _
ByVal color As String, _
ByVal lastEditAt As Nullable(Of Date) _
) As Date
public static DateTime UpdateUtilState(
string stateCd,
string stateDesc,
string color,
Nullable<DateTime> lastEditAt
)
Parameters
- stateCd
- Required. Holds the code of the utilization state that is being updated.
- stateDesc
- Required. Holds the new description for the state. To leave the old description, set to null.
- color
- Required. Holds the new color for the state. To leave the old color, set to null.
- lastEditAt
- Optional. A DateTime value that can be used to avoid data contention. If it is specified, the value must match that value in the database for the update to succeed.
Return Value
Returns a DateTime with the date and time that the utilization state was
updated.