Share via


HtmlHelper.GetUnobtrusiveValidationAttributes Method

Definition

Overloads

GetUnobtrusiveValidationAttributes(String, ModelMetadata)

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

GetUnobtrusiveValidationAttributes(String)

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

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

The HTML name attribute.

metadata
ModelMetadata

The model metadata.

Returns

The collection of unobtrusive JavaScript validation attributes.

Applies to

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

The HTML name attribute.

Returns

The collection of unobtrusive JavaScript validation attributes.

Applies to