Update Method (FileType)
- Last UpdatedNov 06, 2025
- 2 minute read
The Update() method updates all columns for the specified file type record in the File_Type table.
'Declaration
Public Shared Sub Update( _
ByVal sessionId As Integer, _
ByVal fileExt As String, _
ByVal fileDesc As DBString, _
ByVal editLevel As Integer, _
ByVal viewLevel As Integer, _
ByVal printLevel As Integer, _
ByVal editArgs As DBString, _
ByVal viewArgs As DBString, _
ByVal printArgs As DBString, _
ByVal lastEditComment As DBString, _
ByRef lastEditAt As Date _
)
'Usage
Dim sessionId As Integer
Dim fileExt As String
Dim fileDesc As DBString
Dim editLevel As Integer
Dim viewLevel As Integer
Dim printLevel As Integer
Dim editArgs As DBString
Dim viewArgs As DBString
Dim printArgs As DBString
Dim lastEditComment As DBString
Dim lastEditAt As Date
FileType.Update(sessionId, fileExt, fileDesc, editLevel, viewLevel, printLevel, editArgs, viewArgs, printArgs, lastEditComment, lastEditAt)
public static void Update(
int sessionId,
string fileExt,
DBString fileDesc,
int editLevel,
int viewLevel,
int printLevel,
DBString editArgs,
DBString viewArgs,
DBString printArgs,
DBString lastEditComment,
ref DateTime lastEditAt
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- fileExt
- Required. Holds the file extension for the file type, including the leading period.
- fileDesc
- Required. Holds a custom description for a file of this type.
- editLevel
- Required. Holds the user level needed to edit a file of this type.
- viewLevel
- Required. Holds the user level needed to view a file of this type.
- printLevel
- Required. Holds the user level needed to print a file of this type.
- editArgs
- Required. Holds command line arguments for editing a file of this type.
- viewArgs
- Required. Holds command line arguments for viewing a file of this type.
- printArgs
- Required. Holds command line arguments for printing a file of this type.
- lastEditComment
- Required. Holds comments about 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.