ValidationExtensions.ValidationSummary 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
参数
- htmlHelper
- HtmlHelper
- message
- String
- htmlAttributes
- Object
- headingTag
- String
返回
适用于
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
参数
- htmlHelper
- HtmlHelper
- message
- String
- htmlAttributes
- IDictionary<String,Object>
- headingTag
- String
返回
适用于
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
参数
- htmlHelper
- HtmlHelper
- excludePropertyErrors
- Boolean
- message
- String
- headingTag
- String
返回
适用于
ValidationSummary(HtmlHelper, Boolean, String, Object)
返回一个无序列表, (ul 元素) 对象中的 ModelStateDictionary 验证消息,并选择性地仅显示模型级错误。
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
参数
- htmlHelper
- HtmlHelper
此方法扩展的 HTML 帮助器实例。
- excludePropertyErrors
- Boolean
若要使摘要仅显示模型级错误,则为 true;如果为 false,则使摘要显示所有错误。
- message
- String
与验证摘要一起显示的消息。
- htmlAttributes
- Object
包含元素 HTML 特性的对象。
返回
一个字符串,其中包含验证消息的未排序列表(ul 元素)。
适用于
ValidationSummary(HtmlHelper, Boolean, String, IDictionary<String,Object>)
返回一个无序列表, (ul 元素) 对象中的 ModelStateDictionary 验证消息,并选择性地仅显示模型级错误。
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
参数
- htmlHelper
- HtmlHelper
此方法扩展的 HTML 帮助器实例。
- excludePropertyErrors
- Boolean
若要使摘要仅显示模型级错误,则为 true;如果为 false,则使摘要显示所有错误。
- message
- String
与验证摘要一起显示的消息。
- htmlAttributes
- IDictionary<String,Object>
一个包含元素的 HTML 特性的字典。
返回
一个字符串,其中包含验证消息的未排序列表(ul 元素)。
适用于
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
参数
- htmlHelper
- HtmlHelper
- message
- String
- headingTag
- String
返回
适用于
ValidationSummary(HtmlHelper, String, Object)
返回对象中 ModelStateDictionary 验证消息 (ul 元素) 无序列表。
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
参数
- htmlHelper
- HtmlHelper
此方法扩展的 HTML 帮助器实例。
- message
- String
要在指定字段包含错误时显示的消息。
- htmlAttributes
- Object
包含元素 HTML 特性的对象。
返回
一个字符串,其中包含验证消息的未排序列表(ul 元素)。
适用于
ValidationSummary(HtmlHelper, String, IDictionary<String,Object>)
返回对象中的 ModelStateDictionary 验证消息 (ul 元素) 无序列表。
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
参数
- htmlHelper
- HtmlHelper
此方法扩展的 HTML 帮助器实例。
- message
- String
要在指定字段包含错误时显示的消息。
- htmlAttributes
- IDictionary<String,Object>
一个包含元素的 HTML 特性的字典。
返回
一个字符串,其中包含验证消息的未排序列表(ul 元素)。
适用于
ValidationSummary(HtmlHelper, Boolean, String)
返回一个无序列表, (ul 元素) 对象中的 ModelStateDictionary 验证消息,并选择性地仅显示模型级错误。
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
参数
- htmlHelper
- HtmlHelper
此方法扩展的 HTML 帮助器实例。
- excludePropertyErrors
- Boolean
若要使摘要仅显示模型级错误,则为 true;如果为 false,则使摘要显示所有错误。
- message
- String
与验证摘要一起显示的消息。
返回
一个字符串,其中包含验证消息的未排序列表(ul 元素)。
适用于
ValidationSummary(HtmlHelper, String)
返回对象中的 ModelStateDictionary 验证消息 (ul 元素) 无序列表。
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
参数
- htmlHelper
- HtmlHelper
此方法扩展的 HMTL 帮助器实例。
- message
- String
要在指定字段包含错误时显示的消息。
返回
一个字符串,其中包含验证消息的未排序列表(ul 元素)。
适用于
ValidationSummary(HtmlHelper, Boolean)
返回一个无序列表, (ul 元素) 对象中的 ModelStateDictionary 验证消息,并选择性地仅显示模型级错误。
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
参数
- htmlHelper
- HtmlHelper
此方法扩展的 HTML 帮助器实例。
- excludePropertyErrors
- Boolean
若要使摘要仅显示模型级错误,则为 true;如果为 false,则使摘要显示所有错误。
返回
一个字符串,其中包含验证消息的未排序列表(ul 元素)。
适用于
ValidationSummary(HtmlHelper)
返回对象中的 ModelStateDictionary 验证消息 (ul 元素) 无序列表。
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
参数
- htmlHelper
- HtmlHelper
此方法扩展的 HTML 帮助器实例。
返回
一个字符串,其中包含验证消息的未排序列表(ul 元素)。
适用于
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
参数
- htmlHelper
- HtmlHelper
- excludePropertyErrors
- Boolean
- message
- String
- htmlAttributes
- IDictionary<String,Object>
- headingTag
- String
返回
适用于
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
参数
- htmlHelper
- HtmlHelper
- excludePropertyErrors
- Boolean
- message
- String
- htmlAttributes
- Object
- headingTag
- String