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