RecordSampleCharacteristicDataAsync Method
- Last UpdatedMar 17, 2026
- 2 minute read
The RecordSampleCharacteristicDataAsync() asynchronous method updates the Sample_Char_Link table and adds one or more result values to the Result table.
'Declaration
Public Shared Sub RecordSampleCharacteristicDataAsync( _
ByVal sampleId As Integer, _
ByVal entName As String, _
ByVal charName As String, _
ByVal note As String, _
ByVal causeGroupDesc As String, _
ByVal causeDesc As String, _
ByVal controlMove As Nullable(Of Boolean), _
ByVal ignoreSample As Nullable(Of Boolean), _
ByVal equipment As String, _
ByVal createdBy As String, _
ByVal results() As ResultAttribute _
)
'Usage
Dim sampleId As Integer
Dim entName As String
Dim charName As String
Dim note As String
Dim causeGroupDesc As String
Dim causeDesc As String
Dim controlMove As Nullable(Of Boolean)
Dim ignoreSample As Nullable(Of Boolean)
Dim equipment As String
Dim createdBy As String
Dim results() As ResultAttribute
Result.RecordSampleCharacteristicDataAsync(sampleId, entName, charName, note, causeGroupDesc, causeDesc, controlMove, ignoreSample, equipment, createdBy, results)
public static void RecordSampleCharacteristicDataAsync(
int sampleId,
string entName,
string charName,
string note,
string causeGroupDesc,
string causeDesc,
Nullable<bool> controlMove,
Nullable<bool> ignoreSample,
string equipment,
string createdBy,
ResultAttribute[] results
)
Parameters
- sampleId
- Required. Holds the sample ID.
- entName
- Required. Holds the entity name.
- charName
- Required. Holds the characteristic name.
- note
- Optional. Holds notes about this sample for this characteristic.
- causeGroupDesc
- Optional. Holds the description of the cause group.
- causeDesc
- Optional. Holds the description of the cause for this characteristic of this sample.
- controlMove
- Optional. Holds a flag that indicates whether there was there a change to an environmental factor for this sample that would render old control limits obsolete. The default is false (no).
- ignoreSample
- Optional. Holds a flag that indicates whether this sample should be ignored when calculating statistics and control rule violations for this characteristic. The default is false (no).
- equipment
- Optional. Holds the equipment used to make the measurements for this characteristic for this sample.
- createdBy
- Optional. Holds the ID of the user who entered the values.
- results
- Optional. Holds the list of result attributes. Examples of when results wouldn't be supplied are indicating a control move or setting the flag to ignore the sample.