HtmlHelper.AnonymousObjectToHtmlAttributes Method
Replaces underscore characters (_) with hyphens (-) in the specified HTML attributes.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
'Declaration Public Shared Function AnonymousObjectToHtmlAttributes ( _ htmlAttributes As Object _ ) As RouteValueDictionary 'Usage Dim htmlAttributes As Object Dim returnValue As RouteValueDictionary returnValue = HtmlHelper.AnonymousObjectToHtmlAttributes(htmlAttributes)
Parameters
- htmlAttributes
- Type: System.Object
The HTML attributes.
Return Value
Type: System.Web.Routing.RouteValueDictionaryThe HTML attributes with underscore characters replaced by hyphens.
Show: