ScriptedConstraintTObject Constructor |
Namespace:
Aloe.SystemFrameworks.Domain.Validation
Assembly:
Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntaxpublic ScriptedConstraint(
string constraintCode,
string name,
Func<TObject, BusinessEvent, ValidationViolation> constraintScript,
Func<IDataAttribute> getAttribute = null
)
Public Sub New (
constraintCode As String,
name As String,
constraintScript As Func(Of TObject, BusinessEvent, ValidationViolation),
Optional getAttribute As Func(Of IDataAttribute) = Nothing
)
public:
ScriptedConstraint(
String^ constraintCode,
String^ name,
Func<TObject, BusinessEvent^, ValidationViolation^>^ constraintScript,
Func<IDataAttribute^>^ getAttribute = nullptr
)
new :
constraintCode : string *
name : string *
constraintScript : Func<'TObject, BusinessEvent, ValidationViolation> *
?getAttribute : Func<IDataAttribute>
(* Defaults:
let _getAttribute = defaultArg getAttribute null
*)
-> ScriptedConstraint
Parameters
- constraintCode
- Type: SystemString
The rule code. - name
- Type: SystemString
The name of the constraint. - constraintScript
- Type: SystemFuncTObject, BusinessEvent, ValidationViolation
The constraint script. - getAttribute (Optional)
- Type: SystemFuncIDataAttribute
The get attribute function.
See Also