LabelExtensions.LabelForModel Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
LabelForModel(HtmlHelper) |
Restituisce un elemento HTML label e il nome della proprietà rappresentata dal modello. |
LabelForModel(HtmlHelper, IDictionary<String,Object>) |
Restituisce un elemento HTML label e il nome della proprietà rappresentata dall'espressione specificata. |
LabelForModel(HtmlHelper, Object) |
Restituisce un elemento HTML label e il nome della proprietà rappresentata dall'espressione specificata. |
LabelForModel(HtmlHelper, String) |
Restituisce un elemento etichetta HTML e il nome della proprietà rappresentata dall'espressione specificata usando il testo dell'etichetta. |
LabelForModel(HtmlHelper, String, IDictionary<String,Object>) |
Restituisce un elemento HTML label e il nome della proprietà rappresentata dall'espressione specificata. |
LabelForModel(HtmlHelper, String, Object) |
Restituisce un elemento HTML label e il nome della proprietà rappresentata dall'espressione specificata. |
LabelForModel(HtmlHelper)
Restituisce un elemento HTML label e il nome della proprietà rappresentata dal modello.
public static System.Web.Mvc.MvcHtmlString LabelForModel (this System.Web.Mvc.HtmlHelper html);
static member LabelForModel : System.Web.Mvc.HtmlHelper -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function LabelForModel (html As HtmlHelper) As MvcHtmlString
Parametri
- html
- HtmlHelper
Istanza dell'helper HTML estesa da questo metodo.
Restituisce
Elemento HTML label e nome della proprietà rappresentata dal modello.
Si applica a
LabelForModel(HtmlHelper, IDictionary<String,Object>)
Restituisce un elemento HTML label e il nome della proprietà rappresentata dall'espressione specificata.
public static System.Web.Mvc.MvcHtmlString LabelForModel (this System.Web.Mvc.HtmlHelper html, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member LabelForModel : System.Web.Mvc.HtmlHelper * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function LabelForModel (html As HtmlHelper, htmlAttributes As IDictionary(Of String, Object)) As MvcHtmlString
Parametri
- html
- HtmlHelper
Istanza dell'helper HTML estesa da questo metodo.
- htmlAttributes
- IDictionary<String,Object>
Oggetto che contiene gli attributi HTML da impostare per l'elemento.
Restituisce
Elemento etichetta HTML e il nome della proprietà rappresentata dall'espressione.
Si applica a
LabelForModel(HtmlHelper, Object)
Restituisce un elemento HTML label e il nome della proprietà rappresentata dall'espressione specificata.
public static System.Web.Mvc.MvcHtmlString LabelForModel (this System.Web.Mvc.HtmlHelper html, object htmlAttributes);
static member LabelForModel : System.Web.Mvc.HtmlHelper * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function LabelForModel (html As HtmlHelper, htmlAttributes As Object) As MvcHtmlString
Parametri
- html
- HtmlHelper
Istanza dell'helper HTML estesa da questo metodo.
- htmlAttributes
- Object
Oggetto che contiene gli attributi HTML da impostare per l'elemento.
Restituisce
Elemento etichetta HTML e il nome della proprietà rappresentata dall'espressione.
Si applica a
LabelForModel(HtmlHelper, String)
Restituisce un elemento etichetta HTML e il nome della proprietà rappresentata dall'espressione specificata usando il testo dell'etichetta.
public static System.Web.Mvc.MvcHtmlString LabelForModel (this System.Web.Mvc.HtmlHelper html, string labelText);
static member LabelForModel : System.Web.Mvc.HtmlHelper * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function LabelForModel (html As HtmlHelper, labelText As String) As MvcHtmlString
Parametri
- html
- HtmlHelper
Istanza dell'helper HTML estesa da questo metodo.
- labelText
- String
Testo dell'etichetta da visualizzare.
Restituisce
Elemento etichetta HTML e il nome della proprietà rappresentata dall'espressione.
Si applica a
LabelForModel(HtmlHelper, String, IDictionary<String,Object>)
Restituisce un elemento HTML label e il nome della proprietà rappresentata dall'espressione specificata.
public static System.Web.Mvc.MvcHtmlString LabelForModel (this System.Web.Mvc.HtmlHelper html, string labelText, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member LabelForModel : System.Web.Mvc.HtmlHelper * string * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function LabelForModel (html As HtmlHelper, labelText As String, htmlAttributes As IDictionary(Of String, Object)) As MvcHtmlString
Parametri
- html
- HtmlHelper
Istanza dell'helper HTML estesa da questo metodo.
- labelText
- String
Testo dell'etichetta.
- htmlAttributes
- IDictionary<String,Object>
Oggetto che contiene gli attributi HTML da impostare per l'elemento.
Restituisce
Elemento etichetta HTML e il nome della proprietà rappresentata dall'espressione.
Si applica a
LabelForModel(HtmlHelper, String, Object)
Restituisce un elemento HTML label e il nome della proprietà rappresentata dall'espressione specificata.
public static System.Web.Mvc.MvcHtmlString LabelForModel (this System.Web.Mvc.HtmlHelper html, string labelText, object htmlAttributes);
static member LabelForModel : System.Web.Mvc.HtmlHelper * string * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function LabelForModel (html As HtmlHelper, labelText As String, htmlAttributes As Object) As MvcHtmlString
Parametri
- html
- HtmlHelper
Istanza dell'helper HTML estesa da questo metodo.
- labelText
- String
Testo dell'etichetta.
- htmlAttributes
- Object
Oggetto che contiene gli attributi HTML da impostare per l'elemento.
Restituisce
Elemento etichetta HTML e il nome della proprietà rappresentata dall'espressione.