Click or drag to resize

FieldsGetIntValue Method

Get the value for the specified field, converted to an int. The behaviour when the field is not found is dictated by the FindBehaviour parameter.

Namespace:  NetQuarry.Data
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public int GetIntValue(
	string key,
	int defaultValue,
	FindBehaviour behaviour
)

Parameters

key
Type: SystemString
The key of the field for which to get the value.
defaultValue
Type: SystemInt32
The value to return when the field is not found.
behaviour
Type: NetQuarry.DataFindBehaviour
Specifies the behaviour when the field is not found.

Return Value

Type: Int32
The field's value (converted to an int) if found and non-null, else the provided defaultValue.
See Also