UpdateSpecific Method (SampleCharLink)
- Last UpdatedNov 06, 2025
- 2 minute read
The UpdateSpecific() method updates selected columns of the specified sample_char_link record in the Sample_Char_Link table.
'Declaration
Public Shared Sub UpdateSpecific( _
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 Nullable(Of 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 Nullable(Of Date)
SampleCharLink.UpdateSpecific(sessionId, sampleId, charId, qmSpecId, note, causeId, controlMove, ignoreSample, equipment, lastEditComment, lastEditAt)
public static void UpdateSpecific(
int sessionId,
int sampleId,
int charId,
DBInt qmSpecId,
DBString note,
DBInt causeId,
Nullable<bool> controlMove,
Nullable<bool> ignoreSample,
DBString equipment,
DBString lastEditComment,
ref Nullable<DateTime> lastEditAt
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- sampleId
- Required. Holds the Sample Id of the record being updated.
- charId
- Required. Holds the Characteristic Id of the record being updated.
- qmSpecId
- Optional. Holds the Specification Id from which the sample was generated for the record being updated.
- note
- Optional. Holds a text note about this sample for this characteristic of the record being updated.
- causeId
- Optional. Holds the Cause Id for this characteristic of this sample for the record being updated.
- controlMove
- Optional. 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.
- ignoreSample
- Optional. Holds the Boolean value as to whether this sample should be ignored when calculating statistics and run rule violations for this characteristic.
- 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 updated.
- lastEditAt
- In/Out parameter. Holds the datetime that this record was updated.