Share via


NameExtensions.Name(HtmlHelper, String) Method

Definition

Gets the full HTML field name for the object that is represented by the expression.

public static System.Web.Mvc.MvcHtmlString Name (this System.Web.Mvc.HtmlHelper html, string name);
static member Name : System.Web.Mvc.HtmlHelper * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function Name (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 name.

Returns

The full HTML field name for the object that is represented by the expression.

Applies to