HtmlHelperValidationExtensions.ValidationSummary HtmlHelperValidationExtensions.ValidationSummary HtmlHelperValidationExtensions.ValidationSummary Method

Definition

Overloads

ValidationSummary(IHtmlHelper, Boolean, String, String) ValidationSummary(IHtmlHelper, Boolean, String, String) ValidationSummary(IHtmlHelper, Boolean, String, String)

Returns an unordered list (<ul> element) of validation messages that are in the ModelStateDictionary object.

ValidationSummary(IHtmlHelper) ValidationSummary(IHtmlHelper) ValidationSummary(IHtmlHelper)

Returns an unordered list (<ul> element) of validation messages that are in the ModelStateDictionary object.

ValidationSummary(IHtmlHelper, Boolean) ValidationSummary(IHtmlHelper, Boolean) ValidationSummary(IHtmlHelper, Boolean)

Returns an unordered list (<ul> element) of validation messages that are in the ModelStateDictionary object.

ValidationSummary(IHtmlHelper, String) ValidationSummary(IHtmlHelper, String) ValidationSummary(IHtmlHelper, String)

Returns an unordered list (<ul> element) of validation messages that are in the ModelStateDictionary object.

ValidationSummary(IHtmlHelper, Boolean, String) ValidationSummary(IHtmlHelper, Boolean, String) ValidationSummary(IHtmlHelper, Boolean, String)

Returns an unordered list (<ul> element) of validation messages that are in the ModelStateDictionary object.

ValidationSummary(IHtmlHelper, String, Object) ValidationSummary(IHtmlHelper, String, Object) ValidationSummary(IHtmlHelper, String, Object)

Returns an unordered list (<ul> element) of validation messages that are in the ModelStateDictionary object.

ValidationSummary(IHtmlHelper, String, String) ValidationSummary(IHtmlHelper, String, String) ValidationSummary(IHtmlHelper, String, String)

Returns an unordered list (<ul> element) of validation messages that are in the ModelStateDictionary object.

ValidationSummary(IHtmlHelper, Boolean, String, Object) ValidationSummary(IHtmlHelper, Boolean, String, Object) ValidationSummary(IHtmlHelper, Boolean, String, Object)

Returns an unordered list (<ul> element) of validation messages that are in the ModelStateDictionary object.

ValidationSummary(IHtmlHelper, String, Object, String) ValidationSummary(IHtmlHelper, String, Object, String) ValidationSummary(IHtmlHelper, String, Object, String)

Returns an unordered list (<ul> element) of validation messages that are in the ModelStateDictionary object.

ValidationSummary(IHtmlHelper, Boolean, String, String) ValidationSummary(IHtmlHelper, Boolean, String, String) ValidationSummary(IHtmlHelper, Boolean, String, String)

Returns an unordered list (<ul> element) of validation messages that are in the ModelStateDictionary object.

public static Microsoft.AspNetCore.Html.IHtmlContent ValidationSummary (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, bool excludePropertyErrors, string message, string tag);
static member ValidationSummary : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * bool * string * string -> Microsoft.AspNetCore.Html.IHtmlContent
<Extension()>
Public Function ValidationSummary (htmlHelper As IHtmlHelper, excludePropertyErrors As Boolean, message As String, tag As String) As IHtmlContent

Parameters

htmlHelper
IHtmlHelper IHtmlHelper IHtmlHelper

The IHtmlHelper instance this method extends.

excludePropertyErrors
Boolean Boolean Boolean

If true, display model-level errors only; otherwise display all errors.

message
String String String

The message to display with the validation summary.

tag
String String String

The tag to wrap the message in the generated HTML. Its default value is ValidationSummaryMessageElement.

Returns

New IHtmlContent containing a <div> element wrapping the tag element and the <ul> element. An empty IHtmlContent if the current model is valid and client-side validation is disabled.

ValidationSummary(IHtmlHelper) ValidationSummary(IHtmlHelper) ValidationSummary(IHtmlHelper)

Returns an unordered list (<ul> element) of validation messages that are in the ModelStateDictionary object.

public static Microsoft.AspNetCore.Html.IHtmlContent ValidationSummary (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper);
static member ValidationSummary : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper -> Microsoft.AspNetCore.Html.IHtmlContent
<Extension()>
Public Function ValidationSummary (htmlHelper As IHtmlHelper) As IHtmlContent

Parameters

htmlHelper
IHtmlHelper IHtmlHelper IHtmlHelper

The IHtmlHelper instance this method extends.

Returns

New IHtmlContent containing a <div> element wrapping the <ul> element. An empty IHtmlContent if the current model is valid and client-side validation is disabled.

ValidationSummary(IHtmlHelper, Boolean) ValidationSummary(IHtmlHelper, Boolean) ValidationSummary(IHtmlHelper, Boolean)

Returns an unordered list (<ul> element) of validation messages that are in the ModelStateDictionary object.

public static Microsoft.AspNetCore.Html.IHtmlContent ValidationSummary (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, bool excludePropertyErrors);
static member ValidationSummary : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * bool -> Microsoft.AspNetCore.Html.IHtmlContent
<Extension()>
Public Function ValidationSummary (htmlHelper As IHtmlHelper, excludePropertyErrors As Boolean) As IHtmlContent

Parameters

htmlHelper
IHtmlHelper IHtmlHelper IHtmlHelper

The IHtmlHelper instance this method extends.

excludePropertyErrors
Boolean Boolean Boolean

If true, display model-level errors only; otherwise display all errors.

Returns

New IHtmlContent containing a <div> element wrapping the <ul> element. An empty IHtmlContent if the current model is valid and client-side validation is disabled.

ValidationSummary(IHtmlHelper, String) ValidationSummary(IHtmlHelper, String) ValidationSummary(IHtmlHelper, String)

Returns an unordered list (<ul> element) of validation messages that are in the ModelStateDictionary object.

public static Microsoft.AspNetCore.Html.IHtmlContent ValidationSummary (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string message);
static member ValidationSummary : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * string -> Microsoft.AspNetCore.Html.IHtmlContent
<Extension()>
Public Function ValidationSummary (htmlHelper As IHtmlHelper, message As String) As IHtmlContent

Parameters

htmlHelper
IHtmlHelper IHtmlHelper IHtmlHelper

The IHtmlHelper instance this method extends.

message
String String String

The message to display with the validation summary.

Returns

New IHtmlContent containing a <div> element wrapping the ValidationSummaryMessageElement element (which wraps the message) and the <ul> element. An empty IHtmlContent if the current model is valid and client-side validation is disabled.

ValidationSummary(IHtmlHelper, Boolean, String) ValidationSummary(IHtmlHelper, Boolean, String) ValidationSummary(IHtmlHelper, Boolean, String)

Returns an unordered list (<ul> element) of validation messages that are in the ModelStateDictionary object.

public static Microsoft.AspNetCore.Html.IHtmlContent ValidationSummary (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, bool excludePropertyErrors, string message);
static member ValidationSummary : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * bool * string -> Microsoft.AspNetCore.Html.IHtmlContent
<Extension()>
Public Function ValidationSummary (htmlHelper As IHtmlHelper, excludePropertyErrors As Boolean, message As String) As IHtmlContent

Parameters

htmlHelper
IHtmlHelper IHtmlHelper IHtmlHelper

The IHtmlHelper instance this method extends.

excludePropertyErrors
Boolean Boolean Boolean

If true, display model-level errors only; otherwise display all errors.

message
String String String

The message to display with the validation summary.

Returns

New IHtmlContent containing a <div> element wrapping the ValidationSummaryMessageElement element (which, in turn, wraps the message) and the <ul> element. An empty IHtmlContent if the current model is valid and client-side validation is disabled.

ValidationSummary(IHtmlHelper, String, Object) ValidationSummary(IHtmlHelper, String, Object) ValidationSummary(IHtmlHelper, String, Object)

Returns an unordered list (<ul> element) of validation messages that are in the ModelStateDictionary object.

public static Microsoft.AspNetCore.Html.IHtmlContent ValidationSummary (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string message, object htmlAttributes);
static member ValidationSummary : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * string * obj -> Microsoft.AspNetCore.Html.IHtmlContent
<Extension()>
Public Function ValidationSummary (htmlHelper As IHtmlHelper, message As String, htmlAttributes As Object) As IHtmlContent

Parameters

htmlHelper
IHtmlHelper IHtmlHelper IHtmlHelper

The IHtmlHelper instance this method extends.

message
String String String

The message to display with the validation summary.

htmlAttributes
Object Object Object

An Object that contains the HTML attributes for the topmost (<div>) element. Alternatively, an IDictionary<TKey,TValue> instance containing the HTML attributes.

Returns

New IHtmlContent containing a <div> element wrapping the ValidationSummaryMessageElement element (which wraps the message) and the <ul> element. An empty IHtmlContent if the current model is valid and client-side validation is disabled.

ValidationSummary(IHtmlHelper, String, String) ValidationSummary(IHtmlHelper, String, String) ValidationSummary(IHtmlHelper, String, String)

Returns an unordered list (<ul> element) of validation messages that are in the ModelStateDictionary object.

public static Microsoft.AspNetCore.Html.IHtmlContent ValidationSummary (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string message, string tag);
static member ValidationSummary : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * string * string -> Microsoft.AspNetCore.Html.IHtmlContent
<Extension()>
Public Function ValidationSummary (htmlHelper As IHtmlHelper, message As String, tag As String) As IHtmlContent

Parameters

htmlHelper
IHtmlHelper IHtmlHelper IHtmlHelper

The IHtmlHelper instance this method extends.

message
String String String

The message to display with the validation summary.

tag
String String String

The tag to wrap the message in the generated HTML. Its default value is ValidationSummaryMessageElement.

Returns

New IHtmlContent containing a <div> element wrapping the tag element and the <ul> element. An empty IHtmlContent if the current model is valid and client-side validation is disabled.

ValidationSummary(IHtmlHelper, Boolean, String, Object) ValidationSummary(IHtmlHelper, Boolean, String, Object) ValidationSummary(IHtmlHelper, Boolean, String, Object)

Returns an unordered list (<ul> element) of validation messages that are in the ModelStateDictionary object.

public static Microsoft.AspNetCore.Html.IHtmlContent ValidationSummary (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, bool excludePropertyErrors, string message, object htmlAttributes);
static member ValidationSummary : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * bool * string * obj -> Microsoft.AspNetCore.Html.IHtmlContent
<Extension()>
Public Function ValidationSummary (htmlHelper As IHtmlHelper, excludePropertyErrors As Boolean, message As String, htmlAttributes As Object) As IHtmlContent

Parameters

htmlHelper
IHtmlHelper IHtmlHelper IHtmlHelper

The IHtmlHelper instance this method extends.

excludePropertyErrors
Boolean Boolean Boolean

If true, display model-level errors only; otherwise display all errors.

message
String String String

The message to display with the validation summary.

htmlAttributes
Object Object Object

An Object that contains the HTML attributes for the topmost (<div>) element. Alternatively, an IDictionary<TKey,TValue> instance containing the HTML attributes.

Returns

New IHtmlContent containing a <div> element wrapping the ValidationSummaryMessageElement element (which wraps the message) and the <ul> element. An empty IHtmlContent if the current model is valid and client-side validation is disabled.

ValidationSummary(IHtmlHelper, String, Object, String) ValidationSummary(IHtmlHelper, String, Object, String) ValidationSummary(IHtmlHelper, String, Object, String)

Returns an unordered list (<ul> element) of validation messages that are in the ModelStateDictionary object.

public static Microsoft.AspNetCore.Html.IHtmlContent ValidationSummary (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string message, object htmlAttributes, string tag);
static member ValidationSummary : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * string * obj * string -> Microsoft.AspNetCore.Html.IHtmlContent
<Extension()>
Public Function ValidationSummary (htmlHelper As IHtmlHelper, message As String, htmlAttributes As Object, tag As String) As IHtmlContent

Parameters

htmlHelper
IHtmlHelper IHtmlHelper IHtmlHelper

The IHtmlHelper instance this method extends.

message
String String String

The message to display with the validation summary.

htmlAttributes
Object Object Object

An Object that contains the HTML attributes for the topmost (<div>) element. Alternatively, an IDictionary<TKey,TValue> instance containing the HTML attributes.

tag
String String String

The tag to wrap the message in the generated HTML. Its default value is ValidationSummaryMessageElement.

Returns

New IHtmlContent containing a <div> element wrapping the tag element and the <ul> element. An empty IHtmlContent if the current model is valid and client-side validation is disabled.

Applies to