-
Notifications
You must be signed in to change notification settings - Fork 1
M_Ifp_Validation_ValidationSummaryBuilderExtensions_ToValidator__1
Martin Strecker edited this page Mar 9, 2019
·
1 revision
Converts a IValidationRule(T) into an IValidator(T).
Namespace: Ifp.Validation
Assembly: Ifp.Validation (in Ifp.Validation.dll) Version: 1.4.0
C#
public static IValidator<T> ToValidator<T>(
this IValidationRule<T> rule
)
VB
<ExtensionAttribute>
Public Shared Function ToValidator(Of T) (
rule As IValidationRule(Of T)
) As IValidator(Of T)
C++
public:
[ExtensionAttribute]
generic<typename T>
static IValidator<T>^ ToValidator(
IValidationRule<T>^ rule
)
F#
[<ExtensionAttribute>]
static member ToValidator :
rule : IValidationRule<'T> -> IValidator<'T>
- rule
- Type: Ifp.Validation.IValidationRule(T)
The rule that get's converted into an IValidator(T).
- T
- The type of the object to validate.
Type: IValidator(T)
An IValidator(T) that calls the rule on Validate(T).
In Visual Basic and C#, you can call this method as an instance method on any object of type IValidationRule(T). When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
ValidationSummaryBuilderExtensions Class
Ifp.Validation Namespace
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