EditableRepositoryRegisterRule Method |
Registers a constraint for the specified validation events.
Namespace:
Aloe.SystemFrameworks.Domain
Assembly:
Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntaxpublic void RegisterRule(
IBusinessRule businessRule,
IBusinessEventMask eventMask,
Nullable<RuleExecutionPriority> priority = null
)
Public Sub RegisterRule (
businessRule As IBusinessRule,
eventMask As IBusinessEventMask,
Optional priority As Nullable(Of RuleExecutionPriority) = Nothing
)
public:
void RegisterRule(
IBusinessRule^ businessRule,
IBusinessEventMask^ eventMask,
Nullable<RuleExecutionPriority^>^ priority = nullptr
)
member RegisterRule :
businessRule : IBusinessRule *
eventMask : IBusinessEventMask *
?priority : Nullable<RuleExecutionPriority>
(* Defaults:
let _priority = defaultArg priority null
*)
-> unit
Parameters
- businessRule
- Type: Aloe.SystemFrameworks.Domain.BusinessLogicIBusinessRule
The business rule to register. - eventMask
- Type: Aloe.SystemFrameworks.Domain.BusinessLogicIBusinessEventMask
The event mask for which to register the constraint. - priority (Optional)
- Type: SystemNullableRuleExecutionPriority
The execution priority of the rule.
If not specified, the default of the rule is used.
See Also