ModelClientValidationRegexRule(String, String) Constructor

Definition

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.

Applies to