ValidationExtensions.ValidationSummary 方法

定義

多載

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

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

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

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

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

傳回物件中 ModelStateDictionary 驗證訊息的未排序清單 (ul 元素) 。

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

傳回物件中 ModelStateDictionary 驗證訊息的未排序清單 (ul 元素) 。

ValidationSummary(HtmlHelper, Boolean, String)

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

ValidationSummary(HtmlHelper, String)

傳回物件中 ModelStateDictionary 驗證訊息的未排序清單 (ul 元素) 。

ValidationSummary(HtmlHelper, Boolean)

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

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)

傳回未排序的清單 (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 Helper 執行個體。

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 Helper 執行個體。

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 Helper 執行個體。

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 Helper 執行個體。

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 Helper 執行個體。

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 Helper 執行個體。

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 Helper 執行個體。

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 Helper 執行個體。

傳回

字串,包含未排序的驗證訊息清單 (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

傳回

適用於