Freigeben über


HtmlHelper.AnonymousObjectToHtmlAttributes(Object) Methode

Definition

Erstellt ein Wörterbuch mit HTML-Attributen aus dem Eingabeobjekt und übersetzt Unterstriche zu Bindestrichen.

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

Parameter

htmlAttributes
Object

Ein anonymes Objekt, das HTML-Attribute beschreibt.

Gibt zurück

Ein Wörterbuch, das HTML-Attribute abbildet.

Gilt für: