NameExtensions.Id(HtmlHelper, String) Metodo

Definizione

Ottiene l'ID HtmlHelper della stringa.

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

Parametri

html
HtmlHelper

Istanza dell'helper HTML estesa da questo metodo.

name
String

Espressione che identifica l'oggetto contenente l'ID.

Restituisce

Valore dell'attributo ID HTML per l'oggetto rappresentato dall'espressione.

Si applica a