Add Method (FileType)
- Last UpdatedNov 06, 2025
- 2 minute read
The Add() method adds a file type record to the File_Type table.
'Declaration
Public Shared Sub Add( _
ByVal sessionId As Integer, _
ByVal fileExt As String, _
ByVal fileDesc As String, _
ByVal editLevel As Integer, _
ByVal viewLevel As Integer, _
ByVal printLevel As Integer, _
ByVal editArgs As String, _
ByVal viewArgs As String, _
ByVal printArgs As String, _
ByVal lastEditComment As String, _
ByRef lastEditAt As Date _
)
'Usage
Dim sessionId As Integer
Dim fileExt As String
Dim fileDesc As String
Dim editLevel As Integer
Dim viewLevel As Integer
Dim printLevel As Integer
Dim editArgs As String
Dim viewArgs As String
Dim printArgs As String
Dim lastEditComment As String
Dim lastEditAt As Date
FileType.Add(sessionId, fileExt, fileDesc, editLevel, viewLevel, printLevel, editArgs, viewArgs, printArgs, lastEditComment, lastEditAt)
public static void Add(
int sessionId,
string fileExt,
string fileDesc,
int editLevel,
int viewLevel,
int printLevel,
string editArgs,
string viewArgs,
string printArgs,
string lastEditComment,
out 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 this file type, including the leading period.
- fileDesc
- Optional. 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
- Optional. Holds command line arguments for editing a file of this type. The default is null.
- viewArgs
- Optional. Holds command line arguments for viewing a file of this type. The default is null.
- printArgs
- Optional. Holds command line arguments for printing a file of this type. The default is null.
- lastEditComment
- Optional. Holds comments about why this record is being added.
- lastEditAt
Output. Holds the returned date/time when this record was created. The lastEditAt parameter is used in other methods that modify or delete this record for optimistic concurrency control.