RecordSampleDataAsync Method
- Last UpdatedNov 06, 2025
- 2 minute read
The RecordSampleDataAsync() asynchronous method updates a sample record in the Sample table.
'Declaration
Public Shared Sub RecordSampleDataAsync( _
ByVal sampleId As Integer, _
ByVal entName As String, _
ByVal segmentRequirementId As String, _
ByVal segmentResponseId As String, _
ByVal lotNo As String, _
ByVal subLotNo As String, _
ByVal operatorName As String, _
ByVal priority As Nullable(Of Integer), _
ByVal spare1 As String, _
ByVal spare2 As String, _
ByVal spare3 As String, _
ByVal spare4 As String, _
ByVal eventDateTimeLocal As Nullable(Of Date), _
ByVal samples() As SampleAttribute _
)
'Usage
Dim sampleId As Integer
Dim entName As String
Dim segmentRequirementId As String
Dim segmentResponseId As String
Dim lotNo As String
Dim subLotNo As String
Dim operatorName As String
Dim priority As Nullable(Of Integer)
Dim spare1 As String
Dim spare2 As String
Dim spare3 As String
Dim spare4 As String
Dim eventDateTimeLocal As Nullable(Of Date)
Dim samples() As SampleAttribute
Sample.RecordSampleDataAsync(sampleId, entName, segmentRequirementId, segmentResponseId, lotNo, subLotNo, operatorName, priority, spare1, spare2, spare3, spare4, eventDateTimeLocal, samples)
public static void RecordSampleDataAsync(
int sampleId,
string entName,
string segmentRequirementId,
string segmentResponseId,
string lotNo,
string subLotNo,
string operatorName,
Nullable<int> priority,
string spare1,
string spare2,
string spare3,
string spare4,
Nullable<DateTime> eventDateTimeLocal,
SampleAttribute[] samples
)
Parameters
- sampleId
- Required. Holds the sample ID.
- entName
- Required. Holds the entity name.
- segmentRequirementId
- Optional. Holds the segment requirement ID.
- segmentResponseId
- Optional. Holds the segment response ID.
- lotNo
- Optional. Hold the lot number.
- subLotNo
- Optional. Holds the sublot number.
- operatorName
- Optional. Holds the operator name.
- priority
- Optional. Holds the priority of measuring the sample.
- spare1
- Optional. Holds the contents of the user-defined spare1 field.
- spare2
- Optional. Holds the contents of the user-defined spare2 field.
- spare3
- Optional. Holds the contents of the user-defined spare3 field.
- spare4
- Optional. Holds the contents of the user-defined spare4 field.
- eventDateTimeLocal
- Optional. Holds the datetime, in local time, that will be recorded as the sample pull time.
- samples
- Optional. Holds the list of sample attributes.