Click or drag to resize

modelRecordCollectionT, TRecordGetRecord Method (T, Boolean)

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Gets the record using one of supplied arguments.

Namespace:  imbSCI.DataComplex.data.modelRecords
Assembly:  imbSCI.DataComplex (in imbSCI.DataComplex.dll) Version: 0.3.70.
Syntax
C#
public virtual TRecord GetRecord(
	T key,
	bool autoCreateOnMissing = false
)
Request Example View Source

Parameters

key
Type: T
The key.
autoCreateOnMissing (Optional)
Type: SystemBoolean
if set to true [automatic create on missing].

Return Value

Type: TRecord
Record associated with the key
Exceptions
ExceptionCondition
[!:aceCommonTypes.core.exceptions.dataException]No valid arguments supplied: autoCreateOnMissing[" + autoCreateOnMissing + "] but " + nameof(key) + " not found.
See Also