Udostępnij przez


LabelExtensions.Label Metoda

Definicja

Przeciążenia

Label(HtmlHelper, String)

Zwraca element etykiety HTML i nazwę właściwości właściwości reprezentowanej przez określone wyrażenie.

Label(HtmlHelper, String, IDictionary<String,Object>)

Zwraca element etykiety HTML i nazwę właściwości właściwości reprezentowanej przez określone wyrażenie.

Label(HtmlHelper, String, Object)

Zwraca element etykiety HTML i nazwę właściwości właściwości reprezentowanej przez określone wyrażenie.

Label(HtmlHelper, String, String)

Zwraca element etykiety HTML i nazwę właściwości właściwości reprezentowanej przez określone wyrażenie przy użyciu tekstu etykiety.

Label(HtmlHelper, String, String, IDictionary<String,Object>)

Zwraca element etykiety HTML i nazwę właściwości właściwości reprezentowanej przez określone wyrażenie.

Label(HtmlHelper, String, String, Object)

Zwraca element etykiety HTML i nazwę właściwości właściwości reprezentowanej przez określone wyrażenie.

Label(HtmlHelper, String)

Zwraca element etykiety HTML i nazwę właściwości właściwości reprezentowanej przez określone wyrażenie.

public static System.Web.Mvc.MvcHtmlString Label (this System.Web.Mvc.HtmlHelper html, string expression);
static member Label : System.Web.Mvc.HtmlHelper * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function Label (html As HtmlHelper, expression As String) As MvcHtmlString

Parametry

html
HtmlHelper

Wystąpienie pomocnika HTML, które rozszerza ta metoda.

expression
String

Wyrażenie identyfikujące właściwość do wyświetlenia.

Zwraca

Element etykiety HTML i nazwa właściwości właściwości reprezentowanej przez wyrażenie.

Dotyczy

Label(HtmlHelper, String, IDictionary<String,Object>)

Zwraca element etykiety HTML i nazwę właściwości właściwości reprezentowanej przez określone wyrażenie.

public static System.Web.Mvc.MvcHtmlString Label (this System.Web.Mvc.HtmlHelper html, string expression, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member Label : System.Web.Mvc.HtmlHelper * string * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function Label (html As HtmlHelper, expression As String, htmlAttributes As IDictionary(Of String, Object)) As MvcHtmlString

Parametry

html
HtmlHelper

Wystąpienie pomocnika HTML, które rozszerza ta metoda.

expression
String

Wyrażenie identyfikujące właściwość do wyświetlenia.

htmlAttributes
IDictionary<String,Object>

Obiekt, który zawiera atrybuty HTML ustawione dla elementu.

Zwraca

Element etykiety HTML i nazwa właściwości właściwości reprezentowanej przez wyrażenie.

Dotyczy

Label(HtmlHelper, String, Object)

Zwraca element etykiety HTML i nazwę właściwości właściwości reprezentowanej przez określone wyrażenie.

public static System.Web.Mvc.MvcHtmlString Label (this System.Web.Mvc.HtmlHelper html, string expression, object htmlAttributes);
static member Label : System.Web.Mvc.HtmlHelper * string * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function Label (html As HtmlHelper, expression As String, htmlAttributes As Object) As MvcHtmlString

Parametry

html
HtmlHelper

Wystąpienie pomocnika HTML, które rozszerza ta metoda.

expression
String

Wyrażenie identyfikujące właściwość do wyświetlenia.

htmlAttributes
Object

Obiekt, który zawiera atrybuty HTML ustawione dla elementu.

Zwraca

Element etykiety HTML i nazwa właściwości właściwości reprezentowanej przez wyrażenie.

Dotyczy

Label(HtmlHelper, String, String)

Zwraca element etykiety HTML i nazwę właściwości właściwości reprezentowanej przez określone wyrażenie przy użyciu tekstu etykiety.

public static System.Web.Mvc.MvcHtmlString Label (this System.Web.Mvc.HtmlHelper html, string expression, string labelText);
static member Label : System.Web.Mvc.HtmlHelper * string * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function Label (html As HtmlHelper, expression As String, labelText As String) As MvcHtmlString

Parametry

html
HtmlHelper

Wystąpienie pomocnika HTML, które rozszerza ta metoda.

expression
String

Wyrażenie identyfikujące właściwość do wyświetlenia.

labelText
String

Tekst etykiety do wyświetlenia.

Zwraca

Element etykiety HTML i nazwa właściwości właściwości reprezentowanej przez wyrażenie.

Dotyczy

Label(HtmlHelper, String, String, IDictionary<String,Object>)

Zwraca element etykiety HTML i nazwę właściwości właściwości reprezentowanej przez określone wyrażenie.

public static System.Web.Mvc.MvcHtmlString Label (this System.Web.Mvc.HtmlHelper html, string expression, string labelText, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member Label : System.Web.Mvc.HtmlHelper * string * string * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function Label (html As HtmlHelper, expression As String, labelText As String, htmlAttributes As IDictionary(Of String, Object)) As MvcHtmlString

Parametry

html
HtmlHelper

Wystąpienie pomocnika HTML, które rozszerza ta metoda.

expression
String

Wyrażenie identyfikujące właściwość do wyświetlenia.

labelText
String

Tekst etykiety.

htmlAttributes
IDictionary<String,Object>

Obiekt, który zawiera atrybuty HTML ustawione dla elementu.

Zwraca

Element etykiety HTML i nazwa właściwości właściwości reprezentowanej przez wyrażenie.

Dotyczy

Label(HtmlHelper, String, String, Object)

Zwraca element etykiety HTML i nazwę właściwości właściwości reprezentowanej przez określone wyrażenie.

public static System.Web.Mvc.MvcHtmlString Label (this System.Web.Mvc.HtmlHelper html, string expression, string labelText, object htmlAttributes);
static member Label : System.Web.Mvc.HtmlHelper * string * string * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function Label (html As HtmlHelper, expression As String, labelText As String, htmlAttributes As Object) As MvcHtmlString

Parametry

html
HtmlHelper

Wystąpienie pomocnika HTML, które rozszerza ta metoda.

expression
String

Wyrażenie identyfikujące właściwość do wyświetlenia.

labelText
String

Tekst etykiety.

htmlAttributes
Object

Obiekt, który zawiera atrybuty HTML ustawione dla elementu.

Zwraca

Element etykiety HTML i nazwa właściwości właściwości reprezentowanej przez wyrażenie.

Dotyczy