共用方式為


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 屬性的字典。

適用於