HtmlHelper.ValidationSummary(Boolean, String, Object, String) メソッド

定義

オブジェクト内にある検証メッセージの順序なしのリスト (<ul> 要素) を ModelStateDictionary 返します。

public:
 virtual Microsoft::AspNetCore::Html::IHtmlContent ^ ValidationSummary(bool excludePropertyErrors, System::String ^ message, System::Object ^ htmlAttributes, System::String ^ tag);
public Microsoft.AspNetCore.Html.IHtmlContent ValidationSummary (bool excludePropertyErrors, string message, object htmlAttributes, string tag);
abstract member ValidationSummary : bool * string * obj * string -> Microsoft.AspNetCore.Html.IHtmlContent
override this.ValidationSummary : bool * string * obj * string -> Microsoft.AspNetCore.Html.IHtmlContent
Public Function ValidationSummary (excludePropertyErrors As Boolean, message As String, htmlAttributes As Object, tag As String) As IHtmlContent

パラメーター

excludePropertyErrors
Boolean

の場合 true、モデル レベルのエラーのみが表示されます。それ以外の場合は、すべてのエラーが表示されます。

message
String

検証の概要で表示されるメッセージ。

htmlAttributes
Object

Object最上位 (<div>) 要素の HTML 属性を格納している 。 または、HTML 属性を IDictionary<TKey,TValue> 含むインスタンスです。

tag
String

生成された HTML で を message ラップするタグ。 既定値は ValidationSummaryMessageElement です。

戻り値

要素と ul 要素を<ラップする div> 要素をtag<含む NewIHtmlContent。> 現在のモデルが有効で、クライアント側の検証が無効になっている場合は空 IHtmlContent です。

実装

適用対象