Can I specify Multi-valued Parameters in a (custom) Valudation Rule?


Suppose that I want to specify multiple RuleParameter with same name, but with different values.

Is there any way to do this?
E.g. (example!)
<RuleParameters>
<RuleParameter Name="FindText" Value="(Regex1)" Operator="AND"/>
<RuleParameter Name="FindText" Value="(Regex2)" Operator="AND"/>
</RuleParameter>

publicclassMyCustomRuleRegEx :ValidationRule
............

[660 byte] By [JohnClien] at [2007-12-16]
# 1
Parameter names need to be unique. If you are writing a custom rule, you would need to pass in a delimited string to one parameter and then parse the string into each value inside the rule.
slumley at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Visual Studio Team System - Web and Load Testing...

Visual Studio Team System

Site Classified