ModelClientValidationRegexRule(String, String) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Initializes a new instance of the ModelClientValidationRegexRule class.
public ModelClientValidationRegexRule (string errorMessage, string pattern);
new System.Web.Mvc.ModelClientValidationRegexRule : string * string -> System.Web.Mvc.ModelClientValidationRegexRule
Public Sub New (errorMessage As String, pattern As String)
Parameters
- errorMessage
- String
The exception message.
- pattern
- String
The pattern.