Interface IGetsMessageProviderTypeMatchingInfoForRule
An object which determines whether a corresponding type is a candidate for providing a message for a specified ValidationRuleResult.
Namespace: CSF.Validation.Messages
Assembly: CSF.Validation.Abstractions.dll
Syntax
public interface IGetsMessageProviderTypeMatchingInfoForRule
Methods
| Improve this Doc View SourceGetPriority()
Gets a numeric priority indicating the preference for using the corresponding type for providing a validation failure message.
Declaration
int GetPriority()
Returns
| Type | Description |
|---|---|
| System.Int32 | A numeric priority value. |
IsMatch(ValidationRuleResult)
Gets a value that indicates whether this attribute is a candidate for providing a validation failure message for the specified rule result.
Declaration
bool IsMatch(ValidationRuleResult result)
Parameters
| Type | Name | Description |
|---|---|---|
| ValidationRuleResult | result | A validation rule result. |
Returns
| Type | Description |
|---|---|
| System.Boolean | true if this attribute matches the specified result; false otherwise. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | If the |