UpdateSpecific Method (FileType)
- Last UpdatedNov 06, 2025
- 2 minute read
The UpdateSpecific() method updates selected columns of the specified file type record in the File_Type table.
'Declaration
Public Shared Sub UpdateSpecific( _
ByVal sessionId As Integer, _
ByVal fileExt As String, _
ByVal fileDesc As DBString, _
ByVal editLevel As DBInt, _
ByVal viewLevel As DBInt, _
ByVal printLevel As DBInt, _
ByVal editArgs As DBString, _
ByVal viewArgs As DBString, _
ByVal printArgs As DBString, _
ByVal lastEditComment As DBString, _
ByRef lastEditAt As Nullable(Of Date) _
)
'Usage
Dim sessionId As Integer
Dim fileExt As String
Dim fileDesc As DBString
Dim editLevel As DBInt
Dim viewLevel As DBInt
Dim printLevel As DBInt
Dim editArgs As DBString
Dim viewArgs As DBString
Dim printArgs As DBString
Dim lastEditComment As DBString
Dim lastEditAt As Nullable(Of Date)
FileType.UpdateSpecific(sessionId, fileExt, fileDesc, editLevel, viewLevel, printLevel, editArgs, viewArgs, printArgs, lastEditComment, lastEditAt)
public static void UpdateSpecific(
int sessionId,
string fileExt,
DBString fileDesc,
DBInt editLevel,
DBInt viewLevel,
DBInt printLevel,
DBString editArgs,
DBString viewArgs,
DBString printArgs,
DBString lastEditComment,
ref Nullable<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
- Optional. Holds a custom description for a file of this type.
- editLevel
- Optional. Holds the user level needed to edit a file of this type.
- viewLevel
- Optional. Holds the user level needed to view a file of this type.
- printLevel
- Optional. Holds the user level needed to print a file of this type.
- editArgs
- Optional. Holds command line arguments for editing a file of this type.
- viewArgs
- Optional. Holds command line arguments for viewing a file of this type.
- printArgs
- Optional. Holds command line arguments for printing a file of this type.
- lastEditComment
- Optional. Holds comments about why this record is being updated.
- lastEditAt
Optional. Holds the date/time when this record was added or last edited, 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 date/time value when this record was updated by this called method.
Observe the following input parameter rules:
- Optional non-DB* parameters: Either enter a new value or leave the existing value unchanged by passing a null.
- Optional DB* parameters: To clear the existing value and enter an empty value, pass DB*.null (e.g., DBInt.null). To leave the existing value unchanged, pass a null.