HtmlHelper.ValidationSummary Method

Definition

Overloads

ValidationSummary(String, Boolean, Object)

Returns an HTML div element that has the specified custom attributes defined by an attribute object, and that contains a summary message and an unordered list of validation error message from the model-state dictionary, optionally excluding field-level errors.

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

Returns an HTML div element that has the specified custom attributes defined by an attribute dictionary, and that contains a summary message and an unordered list of validation error message from the model-state dictionary, optionally excluding field-level errors.

ValidationSummary(String, Object)

Returns an HTML div element that has the specified custom attributes defined by an attribute object, and that contains a summary message and an unordered list of all validation error message from the model-state dictionary.

ValidationSummary(String, IDictionary<String,Object>)

Returns an HTML div element that has the specified custom attributes defined by an attribute dictionary, and that contains a summary message and an unordered list of all validation error message from the model-state dictionary.

ValidationSummary()

Returns an HTML div element that contains an unordered list of all validation error messages from the model-state dictionary.

ValidationSummary(Object)

Returns an HTML div element that has the specified custom attributes defined by an attribute object, and that contains an unordered list of all validation error messages that are in the model-state dictionary.

ValidationSummary(IDictionary<String,Object>)

Returns an HTML div element that has the specified custom attributes defined by an attribute dictionary, and that contains an unordered list of all validation error messages that are in the model-state dictionary.

ValidationSummary(Boolean)

Returns an HTML div element that contains an unordered list of validation error message from the model-state dictionary, optionally excluding field-level errors.

ValidationSummary(String)

Returns an HTML div element that contains a summary message and an unordered list of all validation error messages that are in the model-state dictionary.

ValidationSummary(String, Boolean, Object)

Returns an HTML div element that has the specified custom attributes defined by an attribute object, and that contains a summary message and an unordered list of validation error message from the model-state dictionary, optionally excluding field-level errors.

public System.Web.IHtmlString ValidationSummary (string message, bool excludeFieldErrors, object htmlAttributes);
member this.ValidationSummary : string * bool * obj -> System.Web.IHtmlString
Public Function ValidationSummary (message As String, excludeFieldErrors As Boolean, htmlAttributes As Object) As IHtmlString

Parameters

message
String

The summary message that comes before the list of validation error messages.

excludeFieldErrors
Boolean

true to exclude field-level validation error messages from the results; false to include and field-level validation error messages.

htmlAttributes
Object

An object that contains custom attributes for the element. The attribute names and values are retrieved through reflection by examining the properties of the object.

Returns

The HTML markup that represents the validation error messages.

Applies to

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

Returns an HTML div element that has the specified custom attributes defined by an attribute dictionary, and that contains a summary message and an unordered list of validation error message from the model-state dictionary, optionally excluding field-level errors.

public System.Web.IHtmlString ValidationSummary (string message, bool excludeFieldErrors, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
member this.ValidationSummary : string * bool * System.Collections.Generic.IDictionary<string, obj> -> System.Web.IHtmlString
Public Function ValidationSummary (message As String, excludeFieldErrors As Boolean, htmlAttributes As IDictionary(Of String, Object)) As IHtmlString

Parameters

message
String

The summary message that comes before the list of validation error messages.

excludeFieldErrors
Boolean

true to exclude field-level validation error messages from the results; false to include both model-level and field-level validation error messages.

htmlAttributes
IDictionary<String,Object>

The names and values of custom attributes for the element.

Returns

The HTML markup that represents the validation error messages.

Applies to

ValidationSummary(String, Object)

Returns an HTML div element that has the specified custom attributes defined by an attribute object, and that contains a summary message and an unordered list of all validation error message from the model-state dictionary.

public System.Web.IHtmlString ValidationSummary (string message, object htmlAttributes);
member this.ValidationSummary : string * obj -> System.Web.IHtmlString
Public Function ValidationSummary (message As String, htmlAttributes As Object) As IHtmlString

Parameters

message
String

The summary message that comes before the list of validation error messages.

htmlAttributes
Object

An object that contains custom attributes for the element. The attribute names and values are retrieved through reflection by examining the properties of the object.

Returns

The HTML markup that represents the validation error messages.

Applies to

ValidationSummary(String, IDictionary<String,Object>)

Returns an HTML div element that has the specified custom attributes defined by an attribute dictionary, and that contains a summary message and an unordered list of all validation error message from the model-state dictionary.

public System.Web.IHtmlString ValidationSummary (string message, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
member this.ValidationSummary : string * System.Collections.Generic.IDictionary<string, obj> -> System.Web.IHtmlString
Public Function ValidationSummary (message As String, htmlAttributes As IDictionary(Of String, Object)) As IHtmlString

Parameters

message
String

The message that comes before the list of validation error messages.

htmlAttributes
IDictionary<String,Object>

The names and values of custom attributes for the element.

Returns

The HTML markup that represents the validation error messages.

Applies to

ValidationSummary()

Returns an HTML div element that contains an unordered list of all validation error messages from the model-state dictionary.

public System.Web.IHtmlString ValidationSummary ();
member this.ValidationSummary : unit -> System.Web.IHtmlString
Public Function ValidationSummary () As IHtmlString

Returns

The HTML markup that represents the validation error messages.

Applies to

ValidationSummary(Object)

Returns an HTML div element that has the specified custom attributes defined by an attribute object, and that contains an unordered list of all validation error messages that are in the model-state dictionary.

public System.Web.IHtmlString ValidationSummary (object htmlAttributes);
member this.ValidationSummary : obj -> System.Web.IHtmlString
Public Function ValidationSummary (htmlAttributes As Object) As IHtmlString

Parameters

htmlAttributes
Object

An object that contains custom attributes for the element. The attribute names and values are retrieved through reflection by examining the properties of the object.

Returns

The HTML markup that represents the validation error messages.

Applies to

ValidationSummary(IDictionary<String,Object>)

Returns an HTML div element that has the specified custom attributes defined by an attribute dictionary, and that contains an unordered list of all validation error messages that are in the model-state dictionary.

public System.Web.IHtmlString ValidationSummary (System.Collections.Generic.IDictionary<string,object> htmlAttributes);
member this.ValidationSummary : System.Collections.Generic.IDictionary<string, obj> -> System.Web.IHtmlString
Public Function ValidationSummary (htmlAttributes As IDictionary(Of String, Object)) As IHtmlString

Parameters

htmlAttributes
IDictionary<String,Object>

The names and values of custom attributes for the element.

Returns

The HTML markup that represents the validation error messages.

Applies to

ValidationSummary(Boolean)

Returns an HTML div element that contains an unordered list of validation error message from the model-state dictionary, optionally excluding field-level errors.

public System.Web.IHtmlString ValidationSummary (bool excludeFieldErrors);
member this.ValidationSummary : bool -> System.Web.IHtmlString
Public Function ValidationSummary (excludeFieldErrors As Boolean) As IHtmlString

Parameters

excludeFieldErrors
Boolean

true to exclude field-level validation error messages from the list; false to include both model-level and field-level validation error messages.

Returns

The HTML markup that represents the validation error messages.

Applies to

ValidationSummary(String)

Returns an HTML div element that contains a summary message and an unordered list of all validation error messages that are in the model-state dictionary.

public System.Web.IHtmlString ValidationSummary (string message);
member this.ValidationSummary : string -> System.Web.IHtmlString
Public Function ValidationSummary (message As String) As IHtmlString

Parameters

message
String

The message that comes before the list of validation error messages.

Returns

The HTML markup that represents the validation error messages.

Applies to