GetByKey Method (SamplePlanFreqLink)
- Last UpdatedNov 06, 2025
- 1 minute read
The GetByKey() method retrieves the specified sample plan frequency link record from the Sample_Plan_Freq_Link table.
'Declaration
Public Shared Function GetByKey( _
ByVal planId As Integer, _
ByVal freqId As Integer _
) As DataSet
'Usage
Dim planId As Integer
Dim freqId As Integer
Dim value As DataSet
value = SamplePlanFreqLink.GetByKey(planId, freqId)
Parameters
- planId
- Required. Holds the ID of the sample plan for the link that is being retrieved.
- freqId
- Required. Holds the ID of the sample plan frequency for the link that is being retrieved.
Return Value
Returns a DataSet that contains the DataRow of the specified sample plan frequency link from the Sample_Plan_Freq_link table. If no matching record for the specified row is found, an empty DataSet is returned.