HtmlHelper.GetUnobtrusiveValidationAttributes HtmlHelper.GetUnobtrusiveValidationAttributes HtmlHelper.GetUnobtrusiveValidationAttributes Method

Definition

Overloads

GetUnobtrusiveValidationAttributes(String, ModelMetadata) GetUnobtrusiveValidationAttributes(String, ModelMetadata) GetUnobtrusiveValidationAttributes(String, ModelMetadata)

Gets the collection of unobtrusive JavaScript validation attributes using the specified HTML name attribute and model metadata.

GetUnobtrusiveValidationAttributes(String) GetUnobtrusiveValidationAttributes(String) GetUnobtrusiveValidationAttributes(String)

Gets the collection of unobtrusive JavaScript validation attributes using the specified HTML name attribute.

GetUnobtrusiveValidationAttributes(String, ModelMetadata) GetUnobtrusiveValidationAttributes(String, ModelMetadata) GetUnobtrusiveValidationAttributes(String, ModelMetadata)

Gets the collection of unobtrusive JavaScript validation attributes using the specified HTML name attribute and model metadata.

public System.Collections.Generic.IDictionary<string,object> GetUnobtrusiveValidationAttributes (string name, System.Web.Mvc.ModelMetadata metadata);
member this.GetUnobtrusiveValidationAttributes : string * System.Web.Mvc.ModelMetadata -> System.Collections.Generic.IDictionary<string, obj>
Public Function GetUnobtrusiveValidationAttributes (name As String, metadata As ModelMetadata) As IDictionary(Of String, Object)

Parameters

name
String String String

The HTML name attribute.

metadata
ModelMetadata ModelMetadata ModelMetadata

The model metadata.

Returns

The collection of unobtrusive JavaScript validation attributes.

GetUnobtrusiveValidationAttributes(String) GetUnobtrusiveValidationAttributes(String) GetUnobtrusiveValidationAttributes(String)

Gets the collection of unobtrusive JavaScript validation attributes using the specified HTML name attribute.

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

Parameters

name
String String String

The HTML name attribute.

Returns

The collection of unobtrusive JavaScript validation attributes.

Applies to