HtmlHelperNameExtensions Class¶
Summary¶
Name-related extensions for [Microsoft.AspNet.Mvc.Rendering.IHtmlHelper](Microsoft.AspNet.Mvc.Rendering.IHtmlHelper.yml).
Methods¶
-
IdForModel
(Microsoft.AspNet.Mvc.Rendering.IHtmlHelper)¶ Returns the HTML element Id for the current model.
Arguments: - htmlHelper (Microsoft.AspNet.Mvc.Rendering.IHtmlHelper) – The [Microsoft.AspNet.Mvc.Rendering.IHtmlHelper](Microsoft.AspNet.Mvc.Rendering.IHtmlHelper.yml) instance this method extends.
Return type: System.String
Returns: A [System.String]() containing the element Id.
public static string IdForModel(IHtmlHelper htmlHelper)
-
NameForModel
(Microsoft.AspNet.Mvc.Rendering.IHtmlHelper)¶ Returns the full HTML element name for the current model.
Arguments: - htmlHelper (Microsoft.AspNet.Mvc.Rendering.IHtmlHelper) – The [Microsoft.AspNet.Mvc.Rendering.IHtmlHelper](Microsoft.AspNet.Mvc.Rendering.IHtmlHelper.yml) instance this method extends.
Return type: System.String
Returns: A [System.String]() containing the element name.
public static string NameForModel(IHtmlHelper htmlHelper)
-