QuantityDataAttributeTObject Constructor |
Namespace:
Aloe.EnterpriseOne.Model.Core
Assembly:
Aloe.EnterpriseOne.Model (in Aloe.EnterpriseOne.Model.dll) Version: 20.1.3.5
Syntaxpublic QuantityDataAttribute(
string name,
IColumnDataAttribute valueAttribute,
Func<TObject, MeasurementUnit> unitGetter,
bool readOnly = false,
DefaultValue defaultValue = null,
AttributeExpressions<TObject> expressions = null,
BaseAttributeInfo baseInfo = null
)
Public Sub New (
name As String,
valueAttribute As IColumnDataAttribute,
unitGetter As Func(Of TObject, MeasurementUnit),
Optional readOnly As Boolean = false,
Optional defaultValue As DefaultValue = Nothing,
Optional expressions As AttributeExpressions(Of TObject) = Nothing,
Optional baseInfo As BaseAttributeInfo = Nothing
)
public:
QuantityDataAttribute(
String^ name,
IColumnDataAttribute^ valueAttribute,
Func<TObject, MeasurementUnit^>^ unitGetter,
bool readOnly = false,
DefaultValue^ defaultValue = nullptr,
AttributeExpressions<TObject>^ expressions = nullptr,
BaseAttributeInfo^ baseInfo = nullptr
)
new :
name : string *
valueAttribute : IColumnDataAttribute *
unitGetter : Func<'TObject, MeasurementUnit> *
?readOnly : bool *
?defaultValue : DefaultValue *
?expressions : AttributeExpressions<'TObject> *
?baseInfo : BaseAttributeInfo
(* Defaults:
let _readOnly = defaultArg readOnly false
let _defaultValue = defaultArg defaultValue null
let _expressions = defaultArg expressions null
let _baseInfo = defaultArg baseInfo null
*)
-> QuantityDataAttribute
Parameters
- name
- Type: SystemString
The name. - valueAttribute
- Type: Aloe.SystemFrameworks.DomainIColumnDataAttribute
The attribute, containing the quantity value. - unitGetter
- Type: SystemFuncTObject, MeasurementUnit
Expression, which gets the measurement unit. - readOnly (Optional)
- Type: SystemBoolean
if set to true [read only]. - defaultValue (Optional)
- Type: Aloe.SystemFrameworks.DomainDefaultValue
The default value. - expressions (Optional)
- Type: Aloe.SystemFrameworks.Domain.AttributesAttributeExpressionsTObject
The recalc expression. - baseInfo (Optional)
- Type: Aloe.SystemFrameworks.Domain.AttributesBaseAttributeInfo
The base information.
Exceptions
See Also