RequiredAttributeConstraintTObject Constructor |
Namespace:
Aloe.SystemFrameworks.Domain.Validation
Assembly:
Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntaxpublic RequiredAttributeConstraint(
string constraintCode,
Func<IDataAttribute> attribute,
Func<TObject, bool> condition
)
Public Sub New (
constraintCode As String,
attribute As Func(Of IDataAttribute),
condition As Func(Of TObject, Boolean)
)
public:
RequiredAttributeConstraint(
String^ constraintCode,
Func<IDataAttribute^>^ attribute,
Func<TObject, bool>^ condition
)
new :
constraintCode : string *
attribute : Func<IDataAttribute> *
condition : Func<'TObject, bool> -> RequiredAttributeConstraint
Parameters
- constraintCode
- Type: SystemString
The constraint code. - attribute
- Type: SystemFuncIDataAttribute
The attribute. - condition
- Type: SystemFuncTObject, Boolean
The condition when the attribute is required. When the condition is not met, the attribute is not required.
See Also