Class AllowAllUsageCriteriaProvider
A special case of IHasFailureMessageUsageCriteria which represents "no criteria". It is hard-coded to return true for all scenarios.
Inheritance
System.Object
AllowAllUsageCriteriaProvider
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: CSF.Validation.Messages
Assembly: CSF.Validation.Abstractions.dll
Syntax
public sealed class AllowAllUsageCriteriaProvider : IHasFailureMessageUsageCriteria
Methods
| Improve this Doc View SourceCanGetFailureMessage(ValidationRuleResult)
Gets a value (which will always be true) which indicates whether or not the current class may be used to provide a failure message for the specified validation rule result.
Declaration
public bool CanGetFailureMessage(ValidationRuleResult result)
Parameters
Type | Name | Description |
---|---|---|
ValidationRuleResult | result | A validation rule result. |
Returns
Type | Description |
---|---|
System.Boolean | This implementation always returns true. |