次の方法で共有


Validator.EqualsTo(String, String) メソッド

定義

別のフィールドの値と照らして、ユーザー入力をテストする検証テストを定義します。

public static System.Web.WebPages.IValidator EqualsTo(string otherFieldName, string errorMessage = default);
static member EqualsTo : string * string -> System.Web.WebPages.IValidator
Public Shared Function EqualsTo (otherFieldName As String, Optional errorMessage As String = null) As IValidator

パラメーター

otherFieldName
String

比較する他方のフィールド。

errorMessage
String

検証が失敗した場合に表示するエラー メッセージ。

戻り値

検証テスト。

適用対象