HtmlHelper.AnonymousObjectToHtmlAttributes(Object) 方法

定义

在指定的 HTML 特性中,将下划线字符 (_) 替换为连字符 (-)。

public static System.Web.Routing.RouteValueDictionary AnonymousObjectToHtmlAttributes (object htmlAttributes);
static member AnonymousObjectToHtmlAttributes : obj -> System.Web.Routing.RouteValueDictionary
Public Shared Function AnonymousObjectToHtmlAttributes (htmlAttributes As Object) As RouteValueDictionary

参数

htmlAttributes
Object

HTML 特性。

返回

将下划线字符替换为连字符的 HTML 特性。

适用于