-
Notifications
You must be signed in to change notification settings - Fork 1
T_Ifp_Validation_RuleBasedValidator_1
Martin Strecker edited this page Mar 9, 2019
·
6 revisions
A validator that takes a set of objects that implement the IValidationRule(T) interface. Use the ValidationRule(T) class or the ValidationRuleDelegate(T) class as base for the implementation of rules.
System.Object
Ifp.Validation.Validator(T)
Ifp.Validation.RuleBasedValidator(T)
Namespace: Ifp.Validation
Assembly: Ifp.Validation (in Ifp.Validation.dll) Version: 1.4.0
C#
public class RuleBasedValidator<T> : Validator<T>
VB
Public Class RuleBasedValidator(Of T)
Inherits Validator(Of T)
C++
generic<typename T>
public ref class RuleBasedValidator : public Validator<T>
F#
type RuleBasedValidator<'T> =
class
inherit Validator<'T>
end
- T
- The type of the object to validate
Name | Description | |
---|---|---|
![]() |
RuleBasedValidator(T)(IValidationRule(T)[]) | Constructs a validator that applies the given validation rules to an object in the given order. |
![]() |
RuleBasedValidator(T)(IEnumerable(IValidationRule(T))) | Constructs a validator that applies the given validation rules to an object in the given order. |
Name | Description | |
---|---|---|
![]() |
Rules | The rules passed in the constructor. |
Name | Description | |
---|---|---|
![]() |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() |
GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() |
ProcessValidations |
Processes the Rules one after the other and stops if a rule returns a ValidationOutcome with IsAnError and CausesValidationProcessToStop both set to true . |
![]() |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() |
Validate | Validates an object by applying the rules given in the constructor RuleBasedValidator(T) to the object in the order specified in the constructor./> (Overrides Validator(T).Validate(T).) |
A Sandcastle Documented Class Library
Send comments on this topic to [](mailto:?Subject=A Sandcastle Documented Class Library)
-
Ifp.Validation Namespace
- CollectionValidator(T) Class
- FailureSeverity Enumeration
- IValidationRule(T) Interface
-
IValidationSummaryPresentationService Interface
-
IValidationSummaryPresentationService Methods
-
IValidationSummaryPresentationService.ShowValidationSummary Method
- IValidationSummaryPresentationService.ShowValidationSummary Method (ValidationSummary)
- IValidationSummaryPresentationService.ShowValidationSummary Method (ValidationSummary, Boolean)
- IValidationSummaryPresentationService.ShowValidationSummary Method (ValidationSummary, Boolean, String)
- IValidationSummaryPresentationService.ShowValidationSummary Method (ValidationSummary, Boolean, String, String)
-
IValidationSummaryPresentationService.ShowValidationSummary Method
-
IValidationSummaryPresentationService Methods
- IValidator(T) Interface
- RuleBasedValidator(T) Class
- SubCollectionValidator(T, U) Class
- ValidationFunction(T) Delegate
- ValidationOutcome Class
- ValidationOutcomeWithMessage Class
- ValidationRule(T) Class
- ValidationRuleDelegate(T) Class
-
ValidationSeverity Class
- ValidationSeverity Constructor
-
ValidationSeverity Properties
- ValidationSeverity.AllowsCancel Property
- ValidationSeverity.CausesCancel Property
- ValidationSeverity.Error Property
- ValidationSeverity.Information Property
- ValidationSeverity.IsAnError Property
- ValidationSeverity.SeverityAsNumber Property
- ValidationSeverity.Success Property
- ValidationSeverity.Warning Property
- ValidationSeverity Methods
- ValidationSeverity.ErrorSeverity Class
- ValidationSeverity.InformationSeverity Class
- ValidationSeverity.SuccessSeverity Class
- ValidationSeverity.WarningSeverity Class
- ValidationSummary Class
- ValidationSummaryBuilder Class
- ValidationSummaryBuilderExtensions Class
- Validator(T) Class
- ValidatorCombiner(T) Class