Add Method (SampleCharLink)
- Last UpdatedNov 06, 2025
- 2 minute read
The Add() method adds a new sample_char_link record to the Sample_Char_Link table.
'Declaration
Public Shared Sub Add( _
ByVal sessionId As Integer, _
ByVal sampleId As Integer, _
ByVal charId As Integer, _
ByVal qmSpecId As DBInt, _
ByVal note As DBString, _
ByVal causeId As DBInt, _
ByVal controlMove As Nullable(Of Boolean), _
ByVal ignoreSample As Nullable(Of Boolean), _
ByVal equipment As DBString, _
ByVal lastEditComment As DBString, _
ByRef lastEditAt As Date _
)
'Usage
Dim sessionId As Integer
Dim sampleId As Integer
Dim charId As Integer
Dim qmSpecId As DBInt
Dim note As DBString
Dim causeId As DBInt
Dim controlMove As Nullable(Of Boolean)
Dim ignoreSample As Nullable(Of Boolean)
Dim equipment As DBString
Dim lastEditComment As DBString
Dim lastEditAt As Date
SampleCharLink.Add(sessionId, sampleId, charId, qmSpecId, note, causeId, controlMove, ignoreSample, equipment, lastEditComment, lastEditAt)
public static void Add(
int sessionId,
int sampleId,
int charId,
DBInt qmSpecId,
DBString note,
DBInt causeId,
Nullable<bool> controlMove,
Nullable<bool> ignoreSample,
DBString equipment,
DBString lastEditComment,
out DateTime lastEditAt
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- sampleId
- Required. Holds the Identity of the Sample.
- charId
- Required. Holds the Characteristic Id.
- qmSpecId
- Optional. Holds the Specification Id from which the sample was generated.
- note
- Optional. Holds a text note about this sample for this characteristic.
- causeId
- Optional. Holds the Cause Id for this characteristic of this sample.
- controlMove
- Required. Holds the Boolean value as to whether there was a change to an environmental factor for this sample that would render old control limits obsolete. Default = No.
- ignoreSample
- Required. Holds the Boolean value as to whether this sample should be ignored when calculating statistics and run rule violations for this characteristic. Default = No
- equipment
- Optional. Holds the equipment used to make the measurements for this characteristic for this sample.
- lastEditComment
- Optional. Holds comments that describe why this record is being added.
- lastEditAt
- Output. Holds the datetime that this record was added.