Share via


HtmlHelperValidationExtensions.ValidationSummary Method

Definition

Overloads

ValidationSummary(IHtmlHelper, Boolean, String, String)

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

ValidationSummary(IHtmlHelper)

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

ValidationSummary(IHtmlHelper, Boolean)

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

ValidationSummary(IHtmlHelper, String)

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

ValidationSummary(IHtmlHelper, Boolean, String)

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

ValidationSummary(IHtmlHelper, String, Object)

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

ValidationSummary(IHtmlHelper, String, String)

Returns an unordered list (<ul> element) of validation messages that are in the ModelStateDictionary 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)

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

ValidationSummary(IHtmlHelper, Boolean, String, String)

Source:
HtmlHelperValidationExtensions.cs
Source:
HtmlHelperValidationExtensions.cs
Source:
HtmlHelperValidationExtensions.cs

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Html::IHtmlContent ^ ValidationSummary(Microsoft::AspNetCore::Mvc::Rendering::IHtmlHelper ^ htmlHelper, bool excludePropertyErrors, System::String ^ message, System::String ^ tag);
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

The IHtmlHelper instance this method extends.

excludePropertyErrors
Boolean

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

message
String

The message to display with the validation summary.

tag
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

ValidationSummary(IHtmlHelper)

Source:
HtmlHelperValidationExtensions.cs
Source:
HtmlHelperValidationExtensions.cs
Source:
HtmlHelperValidationExtensions.cs

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Html::IHtmlContent ^ ValidationSummary(Microsoft::AspNetCore::Mvc::Rendering::IHtmlHelper ^ htmlHelper);
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

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.

Applies to

ValidationSummary(IHtmlHelper, Boolean)

Source:
HtmlHelperValidationExtensions.cs
Source:
HtmlHelperValidationExtensions.cs
Source:
HtmlHelperValidationExtensions.cs

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Html::IHtmlContent ^ ValidationSummary(Microsoft::AspNetCore::Mvc::Rendering::IHtmlHelper ^ htmlHelper, bool excludePropertyErrors);
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

The IHtmlHelper instance this method extends.

excludePropertyErrors
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.

Applies to

ValidationSummary(IHtmlHelper, String)

Source:
HtmlHelperValidationExtensions.cs
Source:
HtmlHelperValidationExtensions.cs
Source:
HtmlHelperValidationExtensions.cs

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Html::IHtmlContent ^ ValidationSummary(Microsoft::AspNetCore::Mvc::Rendering::IHtmlHelper ^ htmlHelper, System::String ^ message);
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

The IHtmlHelper instance this method extends.

message
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.

Applies to

ValidationSummary(IHtmlHelper, Boolean, String)

Source:
HtmlHelperValidationExtensions.cs
Source:
HtmlHelperValidationExtensions.cs
Source:
HtmlHelperValidationExtensions.cs

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Html::IHtmlContent ^ ValidationSummary(Microsoft::AspNetCore::Mvc::Rendering::IHtmlHelper ^ htmlHelper, bool excludePropertyErrors, System::String ^ message);
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

The IHtmlHelper instance this method extends.

excludePropertyErrors
Boolean

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

message
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.

Applies to

ValidationSummary(IHtmlHelper, String, Object)

Source:
HtmlHelperValidationExtensions.cs
Source:
HtmlHelperValidationExtensions.cs
Source:
HtmlHelperValidationExtensions.cs

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Html::IHtmlContent ^ ValidationSummary(Microsoft::AspNetCore::Mvc::Rendering::IHtmlHelper ^ htmlHelper, System::String ^ message, System::Object ^ htmlAttributes);
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

The IHtmlHelper instance this method extends.

message
String

The message to display with the validation summary.

htmlAttributes
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.

Applies to

ValidationSummary(IHtmlHelper, String, String)

Source:
HtmlHelperValidationExtensions.cs
Source:
HtmlHelperValidationExtensions.cs
Source:
HtmlHelperValidationExtensions.cs

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Html::IHtmlContent ^ ValidationSummary(Microsoft::AspNetCore::Mvc::Rendering::IHtmlHelper ^ htmlHelper, System::String ^ message, System::String ^ tag);
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

The IHtmlHelper instance this method extends.

message
String

The message to display with the validation summary.

tag
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

ValidationSummary(IHtmlHelper, Boolean, String, Object)

Source:
HtmlHelperValidationExtensions.cs
Source:
HtmlHelperValidationExtensions.cs
Source:
HtmlHelperValidationExtensions.cs

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Html::IHtmlContent ^ ValidationSummary(Microsoft::AspNetCore::Mvc::Rendering::IHtmlHelper ^ htmlHelper, bool excludePropertyErrors, System::String ^ message, System::Object ^ htmlAttributes);
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

The IHtmlHelper instance this method extends.

excludePropertyErrors
Boolean

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

message
String

The message to display with the validation summary.

htmlAttributes
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.

Applies to

ValidationSummary(IHtmlHelper, String, Object, String)

Source:
HtmlHelperValidationExtensions.cs
Source:
HtmlHelperValidationExtensions.cs
Source:
HtmlHelperValidationExtensions.cs

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Html::IHtmlContent ^ ValidationSummary(Microsoft::AspNetCore::Mvc::Rendering::IHtmlHelper ^ htmlHelper, System::String ^ message, System::Object ^ htmlAttributes, System::String ^ tag);
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

The IHtmlHelper instance this method extends.

message
String

The message to display with the validation summary.

htmlAttributes
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

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