SetSamplePulled Method
- Last UpdatedNov 06, 2025
- 1 minute read
The SetSamplePulled() method updates the pulled_by and pulled_time fields of the specified sample record in the Sample table to set the sample as having been pulled. The pulled_by field will be set to the currently logged in user. The time at which the sample was pulled can be specified. If it's not, it will be set to the current time.
'Declaration
Public Shared Sub SetSamplePulled( _
ByVal sessionId As Integer, _
ByVal sampleId As Integer, _
ByVal pulledBy As String, _
ByVal pulledTime As Nullable(Of Date) _
)
'Usage
Dim sessionId As Integer
Dim sampleId As Integer
Dim pulledBy As String
Dim pulledTime As Nullable(Of Date)
Sample.SetSamplePulled(sessionId, sampleId, pulledBy, pulledTime)
public static void SetSamplePulled(
int sessionId,
int sampleId,
string pulledBy,
Nullable<DateTime> pulledTime
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- sampleId
- Required. Holds the ID assigned to this record when it is added. The sampleId parameter is used by other methods that modify or delete this type of record.
- pulledBy
- Optional. Holds the name of the user who pulled the sample.
- pulledTime
- Optional. Holds the Local Date when the sample was pulled.