Udostępnij za pośrednictwem


ModelClientValidationRegexRule(String, String) Konstruktor

Definicja

Ten typ/element członkowski obsługuje infrastrukturę .NET Framework i nie jest przeznaczony do użycia bezpośrednio z kodu. Inicjuje nowe wystąpienie klasy ModelClientValidationRegexRule.

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)

Parametry

errorMessage
String

Komunikat wyjątku.

pattern
String

Wzorzec.

Dotyczy