ValidationHelper.ClassFor(String) メソッド

定義

ユーザー入力要素の検証メッセージが表示される場合に、使用される CSS スタイル定義を参照する属性を表示します。

public System.Web.HtmlString ClassFor (string field);
member this.ClassFor : string -> System.Web.HtmlString
Public Function ClassFor (field As String) As HtmlString

パラメーター

field
String

検証するユーザー入力要素の名前 (name 属性の値)。

戻り値

属性。

適用対象