NameExtensions.Id(HtmlHelper, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the ID of the HtmlHelper string.
public static System.Web.Mvc.MvcHtmlString Id (this System.Web.Mvc.HtmlHelper html, string name);
static member Id : System.Web.Mvc.HtmlHelper * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function Id (html As HtmlHelper, name As String) As MvcHtmlString
Parameters
- html
- HtmlHelper
The HTML helper instance that this method extends.
- name
- String
An expression that identifies the object that contains the ID.
Returns
The HTML ID attribute value for the object that is represented by the expression.