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)

'Declaration
Public Function GetUnobtrusiveValidationAttributes ( _
	name As String, _
	metadata As ModelMetadata _
) As IDictionary(Of String, Object)
'Usage
Dim instance As HtmlHelper 
Dim name As String 
Dim metadata As ModelMetadata 
Dim returnValue As IDictionary(Of String, Object)

returnValue = instance.GetUnobtrusiveValidationAttributes(name, _
	metadata)

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(Of String, Object)
The collection of unobtrusive JavaScript validation attributes.
Show: