GetByKey(Int32,Int32) Method
- Last UpdatedNov 06, 2025
- 1 minute read
The GetByKey() method retrieves the specified sample attribute record from the Sample_Attr table.
This overload of the method uses the attribute ID to identify the attribute.
'Declaration
Public Overloads Shared Function GetByKey( _
ByVal sampleId As Integer, _
ByVal attrId As Integer _
) As DataSet
'Usage
Dim sampleId As Integer
Dim attrId As Integer
Dim value As DataSet
value = SampleAttr.GetByKey(sampleId, attrId)
Parameters
- sampleId
- Required. Holds the sample ID.
- attrId
- Required. Holds the attribute ID.
Return Value
Returns a DataSet that contains the record from the Sample_Attr table that satisfies the specified filters. If no matching record is found, an empty DataSet is returned.