ValidationExtensions.ValidationSummary Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ValidationSummary(HtmlHelper, String, Object, String)
public static System.Web.Mvc.MvcHtmlString ValidationSummary (this System.Web.Mvc.HtmlHelper htmlHelper, string message, object htmlAttributes, string headingTag);
static member ValidationSummary : System.Web.Mvc.HtmlHelper * string * obj * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ValidationSummary (htmlHelper As HtmlHelper, message As String, htmlAttributes As Object, headingTag As String) As MvcHtmlString
Parameters
- htmlHelper
- HtmlHelper
- message
- String
- htmlAttributes
- Object
- headingTag
- String
Returns
Applies to
ValidationSummary(HtmlHelper, String, IDictionary<String,Object>, String)
public static System.Web.Mvc.MvcHtmlString ValidationSummary (this System.Web.Mvc.HtmlHelper htmlHelper, string message, System.Collections.Generic.IDictionary<string,object> htmlAttributes, string headingTag);
static member ValidationSummary : System.Web.Mvc.HtmlHelper * string * System.Collections.Generic.IDictionary<string, obj> * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ValidationSummary (htmlHelper As HtmlHelper, message As String, htmlAttributes As IDictionary(Of String, Object), headingTag As String) As MvcHtmlString
Parameters
- htmlHelper
- HtmlHelper
- message
- String
- htmlAttributes
- IDictionary<String,Object>
- headingTag
- String
Returns
Applies to
ValidationSummary(HtmlHelper, Boolean, String, String)
public static System.Web.Mvc.MvcHtmlString ValidationSummary (this System.Web.Mvc.HtmlHelper htmlHelper, bool excludePropertyErrors, string message, string headingTag);
static member ValidationSummary : System.Web.Mvc.HtmlHelper * bool * string * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ValidationSummary (htmlHelper As HtmlHelper, excludePropertyErrors As Boolean, message As String, headingTag As String) As MvcHtmlString
Parameters
- htmlHelper
- HtmlHelper
- excludePropertyErrors
- Boolean
- message
- String
- headingTag
- String
Returns
Applies to
ValidationSummary(HtmlHelper, Boolean, String, Object)
Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object and optionally displays only model-level errors.
public static System.Web.Mvc.MvcHtmlString ValidationSummary (this System.Web.Mvc.HtmlHelper htmlHelper, bool excludePropertyErrors, string message, object htmlAttributes);
static member ValidationSummary : System.Web.Mvc.HtmlHelper * bool * string * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ValidationSummary (htmlHelper As HtmlHelper, excludePropertyErrors As Boolean, message As String, htmlAttributes As Object) As MvcHtmlString
Parameters
- htmlHelper
- HtmlHelper
The HTML helper instance that this method extends.
- excludePropertyErrors
- Boolean
true to have the summary display model-level errors only, or false to have the summary display all errors.
- message
- String
The message to display with the validation summary.
- htmlAttributes
- Object
An object that contains the HTML attributes for the element.
Returns
A string that contains an unordered list (ul element) of validation messages.
Applies to
ValidationSummary(HtmlHelper, Boolean, String, IDictionary<String,Object>)
Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object and optionally displays only model-level errors.
public static System.Web.Mvc.MvcHtmlString ValidationSummary (this System.Web.Mvc.HtmlHelper htmlHelper, bool excludePropertyErrors, string message, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member ValidationSummary : System.Web.Mvc.HtmlHelper * bool * string * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ValidationSummary (htmlHelper As HtmlHelper, excludePropertyErrors As Boolean, message As String, htmlAttributes As IDictionary(Of String, Object)) As MvcHtmlString
Parameters
- htmlHelper
- HtmlHelper
The HTML helper instance that this method extends.
- excludePropertyErrors
- Boolean
true to have the summary display model-level errors only, or false to have the summary display all errors.
- message
- String
The message to display with the validation summary.
- htmlAttributes
- IDictionary<String,Object>
A dictionary that contains the HTML attributes for the element.
Returns
A string that contains an unordered list (ul element) of validation messages.
Applies to
ValidationSummary(HtmlHelper, String, String)
public static System.Web.Mvc.MvcHtmlString ValidationSummary (this System.Web.Mvc.HtmlHelper htmlHelper, string message, string headingTag);
static member ValidationSummary : System.Web.Mvc.HtmlHelper * string * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ValidationSummary (htmlHelper As HtmlHelper, message As String, headingTag As String) As MvcHtmlString
Parameters
- htmlHelper
- HtmlHelper
- message
- String
- headingTag
- String
Returns
Applies to
ValidationSummary(HtmlHelper, String, Object)
Returns an unordered list (ul element) of validation messages in the ModelStateDictionary object.
public static System.Web.Mvc.MvcHtmlString ValidationSummary (this System.Web.Mvc.HtmlHelper htmlHelper, string message, object htmlAttributes);
static member ValidationSummary : System.Web.Mvc.HtmlHelper * string * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ValidationSummary (htmlHelper As HtmlHelper, message As String, htmlAttributes As Object) As MvcHtmlString
Parameters
- htmlHelper
- HtmlHelper
The HTML helper instance that this method extends.
- message
- String
The message to display if the specified field contains an error.
- htmlAttributes
- Object
An object that contains the HTML attributes for the element.
Returns
A string that contains an unordered list (ul element) of validation messages.
Applies to
ValidationSummary(HtmlHelper, String, IDictionary<String,Object>)
Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object.
public static System.Web.Mvc.MvcHtmlString ValidationSummary (this System.Web.Mvc.HtmlHelper htmlHelper, string message, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member ValidationSummary : System.Web.Mvc.HtmlHelper * string * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ValidationSummary (htmlHelper As HtmlHelper, message As String, htmlAttributes As IDictionary(Of String, Object)) As MvcHtmlString
Parameters
- htmlHelper
- HtmlHelper
The HTML helper instance that this method extends.
- message
- String
The message to display if the specified field contains an error.
- htmlAttributes
- IDictionary<String,Object>
A dictionary that contains the HTML attributes for the element.
Returns
A string that contains an unordered list (ul element) of validation messages.
Applies to
ValidationSummary(HtmlHelper, Boolean, String)
Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object and optionally displays only model-level errors.
public static System.Web.Mvc.MvcHtmlString ValidationSummary (this System.Web.Mvc.HtmlHelper htmlHelper, bool excludePropertyErrors, string message);
static member ValidationSummary : System.Web.Mvc.HtmlHelper * bool * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ValidationSummary (htmlHelper As HtmlHelper, excludePropertyErrors As Boolean, message As String) As MvcHtmlString
Parameters
- htmlHelper
- HtmlHelper
The HTML helper instance that this method extends.
- excludePropertyErrors
- Boolean
true to have the summary display model-level errors only, or false to have the summary display all errors.
- message
- String
The message to display with the validation summary.
Returns
A string that contains an unordered list (ul element) of validation messages.
Applies to
ValidationSummary(HtmlHelper, String)
Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object.
public static System.Web.Mvc.MvcHtmlString ValidationSummary (this System.Web.Mvc.HtmlHelper htmlHelper, string message);
static member ValidationSummary : System.Web.Mvc.HtmlHelper * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ValidationSummary (htmlHelper As HtmlHelper, message As String) As MvcHtmlString
Parameters
- htmlHelper
- HtmlHelper
The HMTL helper instance that this method extends.
- message
- String
The message to display if the specified field contains an error.
Returns
A string that contains an unordered list (ul element) of validation messages.
Applies to
ValidationSummary(HtmlHelper, Boolean)
Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object and optionally displays only model-level errors.
public static System.Web.Mvc.MvcHtmlString ValidationSummary (this System.Web.Mvc.HtmlHelper htmlHelper, bool excludePropertyErrors);
static member ValidationSummary : System.Web.Mvc.HtmlHelper * bool -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ValidationSummary (htmlHelper As HtmlHelper, excludePropertyErrors As Boolean) As MvcHtmlString
Parameters
- htmlHelper
- HtmlHelper
The HTML helper instance that this method extends.
- excludePropertyErrors
- Boolean
true to have the summary display model-level errors only, or false to have the summary display all errors.
Returns
A string that contains an unordered list (ul element) of validation messages.
Applies to
ValidationSummary(HtmlHelper)
Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object.
public static System.Web.Mvc.MvcHtmlString ValidationSummary (this System.Web.Mvc.HtmlHelper htmlHelper);
static member ValidationSummary : System.Web.Mvc.HtmlHelper -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ValidationSummary (htmlHelper As HtmlHelper) As MvcHtmlString
Parameters
- htmlHelper
- HtmlHelper
The HTML helper instance that this method extends.
Returns
A string that contains an unordered list (ul element) of validation messages.
Applies to
ValidationSummary(HtmlHelper, Boolean, String, IDictionary<String,Object>, String)
public static System.Web.Mvc.MvcHtmlString ValidationSummary (this System.Web.Mvc.HtmlHelper htmlHelper, bool excludePropertyErrors, string message, System.Collections.Generic.IDictionary<string,object> htmlAttributes, string headingTag);
static member ValidationSummary : System.Web.Mvc.HtmlHelper * bool * string * System.Collections.Generic.IDictionary<string, obj> * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ValidationSummary (htmlHelper As HtmlHelper, excludePropertyErrors As Boolean, message As String, htmlAttributes As IDictionary(Of String, Object), headingTag As String) As MvcHtmlString
Parameters
- htmlHelper
- HtmlHelper
- excludePropertyErrors
- Boolean
- message
- String
- htmlAttributes
- IDictionary<String,Object>
- headingTag
- String
Returns
Applies to
ValidationSummary(HtmlHelper, Boolean, String, Object, String)
public static System.Web.Mvc.MvcHtmlString ValidationSummary (this System.Web.Mvc.HtmlHelper htmlHelper, bool excludePropertyErrors, string message, object htmlAttributes, string headingTag);
static member ValidationSummary : System.Web.Mvc.HtmlHelper * bool * string * obj * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ValidationSummary (htmlHelper As HtmlHelper, excludePropertyErrors As Boolean, message As String, htmlAttributes As Object, headingTag As String) As MvcHtmlString
Parameters
- htmlHelper
- HtmlHelper
- excludePropertyErrors
- Boolean
- message
- String
- htmlAttributes
- Object
- headingTag
- String