Add Method (CertUserLink)
- Last UpdatedNov 06, 2025
- 1 minute read
The Add() method adds a new certification user link record to the Cert_User_Link table.
'Declaration
Public Shared Sub Add( _
ByVal sessionId As Integer, _
ByVal certName As String, _
ByVal userId As String, _
ByVal certLevel As Integer, _
ByVal expiryTime As Nullable(Of Date), _
ByVal lastEditComment As String, _
ByRef lastEditAt As Date _
)
'Usage
Dim sessionId As Integer
Dim certName As String
Dim userId As String
Dim certLevel As Integer
Dim expiryTime As Nullable(Of Date)
Dim lastEditComment As String
Dim lastEditAt As Date
CertUserLink.Add(sessionId, certName, userId, certLevel, expiryTime, lastEditComment, lastEditAt)
public static void Add(
int sessionId,
string certName,
string userId,
int certLevel,
Nullable<DateTime> expiryTime,
string lastEditComment,
out DateTime lastEditAt
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- certName
- Required. Holds the name of the certification.
- userId
- Required. Holds the ID of the user to whom the certification is linked.
- certLevel
- Required. Holds the certification level required.
- expiryTime
- Optional. Holds the date when the certification is going to expire for the linked user.
- lastEditComment
- Optional. Holds comments that describes 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.