UpdateSpecific Method (Category)
- Last UpdatedNov 06, 2025
- 2 minute read
The UpdateSpecific() method updates selected columns of the specified category record in the Category table.
'Declaration
Public Shared Sub UpdateSpecific( _
ByVal sessionId As Integer, _
ByVal categoryId As Integer, _
ByVal categoryName As String, _
ByVal categoryDesc As DBString, _
ByVal spare1 As DBString, _
ByVal spare2 As DBString, _
ByVal spare3 As DBString, _
ByVal spare4 As DBString, _
ByVal lastEditComment As DBString, _
ByRef lastEditAt As Nullable(Of Date) _
)
'Usage
Dim sessionId As Integer
Dim categoryId As Integer
Dim categoryName As String
Dim categoryDesc As DBString
Dim spare1 As DBString
Dim spare2 As DBString
Dim spare3 As DBString
Dim spare4 As DBString
Dim lastEditComment As DBString
Dim lastEditAt As Nullable(Of Date)
Category.UpdateSpecific(sessionId, categoryId, categoryName, categoryDesc, spare1, spare2, spare3, spare4, lastEditComment, lastEditAt)
public static void UpdateSpecific(
int sessionId,
int categoryId,
string categoryName,
DBString categoryDesc,
DBString spare1,
DBString spare2,
DBString spare3,
DBString spare4,
DBString lastEditComment,
ref Nullable<DateTime> lastEditAt
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- categoryId
- Optional. Holds the ID of the category.
- categoryName
- Optional. Holds the name of the category.
- categoryDesc
- Optional. Holds the description of the category.
- spare1
- Optional. A string value identifying the spare1 value
- spare2
- Optional. A string value identifying the spare2 value
- spare3
- Optional. A string value identifying the spare3 value
- spare4
- Optional. A string value identifying the spare4 value
- lastEditComment
- Optional. A string to specify why the record was changed
- lastEditAt
Optional. Holds the datetime when this record was added or last updated, for optimistic concurrency control. If it is specified, the passed value must match the lastEditAt value in the record for the update to succeed.
Output. Holds the datetime value when the record was updated by this called method.
Observe the following input parameter rules:
- Optional non-DB* parameters: Either enter a value or pass a null. If passing a null and a default value has been defined, the default value will be used for the parameter.
- Optional DB* parameters: To enter no value for the parameter, pass DB*.null (e.g., DBInt.null). To use the default value for the parameter if one has been defined for the object being added, pass a null.