HtmlHelper.GetUnobtrusiveValidationAttributes Method (String, ModelMetadata)

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

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

member GetUnobtrusiveValidationAttributes : 
        name:string * 
        metadata:ModelMetadata -> IDictionary<string, Object> 

Parameters

name
Type: System.String

The HTML name attribute.

metadata
Type: System.Web.Mvc.ModelMetadata

The model metadata.

Return Value

Type: System.Collections.Generic.IDictionary(String, Object)
The collection of unobtrusive JavaScript validation attributes.
Show: