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