Show / Hide Table of Contents

Interface IGetsRuleConfiguration

An object which can get an executable action that will configure a validation rule instance based on a series of specified property values.

Namespace: CSF.Validation.ManifestModel
Assembly: CSF.Validation.dll
Syntax
public interface IGetsRuleConfiguration

Methods

| Improve this Doc View Source

GetRuleConfigurationAction(Type, IDictionary<String, Object>)

Gets the configuration action which sets the specified property values upon a rule instance.

Declaration
Action<object> GetRuleConfigurationAction(Type ruleType, IDictionary<string, object> rulePropertyValues)
Parameters
Type Name Description
System.Type ruleType

The System.Type of validation rule for which the action should operate.

System.Collections.Generic.IDictionary<System.String, System.Object> rulePropertyValues

A collection of named property values to be set upon the rule instance by the action.

Returns
Type Description
System.Action<System.Object>

An executable action which sets the specified property values into the rule instance.

Exceptions
Type Condition
System.ArgumentNullException

If ruleType is null.

System.ArgumentException

If the rulePropertyValues contains any entries which correspond to either non-existent or non-settable properties of the ruleType.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX