共用方式為


ValidationExtensions.ValidationSummary 方法

定義

多載

ValidationSummary(HtmlHelper, String, Object, String)
ValidationSummary(HtmlHelper, String, IDictionary<String,Object>, String)
ValidationSummary(HtmlHelper, Boolean, String, String)
ValidationSummary(HtmlHelper, Boolean, String, Object)

傳回 ModelStateDictionary 對象中驗證訊息的未排序列表(ul 元素),並選擇性地只顯示模型層級錯誤。

ValidationSummary(HtmlHelper, Boolean, String, IDictionary<String,Object>)

傳回 ModelStateDictionary 對象中驗證訊息的未排序列表(ul 元素),並選擇性地只顯示模型層級錯誤。

ValidationSummary(HtmlHelper, String, String)
ValidationSummary(HtmlHelper, String, Object)

傳回 ModelStateDictionary 對象中驗證訊息的未排序列表(ul 元素)。

ValidationSummary(HtmlHelper, String, IDictionary<String,Object>)

傳回 ModelStateDictionary 對象中驗證訊息的未排序列表(ul 元素)。

ValidationSummary(HtmlHelper, Boolean, String)

傳回 ModelStateDictionary 對象中驗證訊息的未排序列表(ul 元素),並選擇性地只顯示模型層級錯誤。

ValidationSummary(HtmlHelper, String)

傳回 ModelStateDictionary 對象中驗證訊息的未排序列表(ul 元素)。

ValidationSummary(HtmlHelper, Boolean)

傳回 ModelStateDictionary 對象中驗證訊息的未排序列表(ul 元素),並選擇性地只顯示模型層級錯誤。

ValidationSummary(HtmlHelper)

傳回 ModelStateDictionary 對象中驗證訊息的未排序列表(ul 元素)。

ValidationSummary(HtmlHelper, Boolean, String, IDictionary<String,Object>, String)
ValidationSummary(HtmlHelper, Boolean, String, Object, String)

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)

傳回 ModelStateDictionary 對象中驗證訊息的未排序列表(ul 元素),並選擇性地只顯示模型層級錯誤。

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>)

傳回 ModelStateDictionary 對象中驗證訊息的未排序列表(ul 元素),並選擇性地只顯示模型層級錯誤。

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)

傳回 ModelStateDictionary 對象中驗證訊息的未排序列表(ul 元素),並選擇性地只顯示模型層級錯誤。

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)

傳回 ModelStateDictionary 對象中驗證訊息的未排序列表(ul 元素),並選擇性地只顯示模型層級錯誤。

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

傳回

適用於