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 특성이 들어 있는 입니다. IDictionary<TKey,TValue> 또는 HTML 특성을 포함하는 instance.

tag
String

생성된 HTML에서 를 message 래핑할 태그입니다. 기본값은 ValidationSummaryMessageElement합니다.

반환

요소와 ul> 요소를 래핑하는 tag<div> 요소를 포함하는 새로 IHtmlContent 만들기<입니다. 현재 모델이 유효하고 클라이언트 쪽 유효성 검사를 사용할 수 없는 경우 빈 IHtmlContent 입니다.

구현

적용 대상