HtmlHelperLabelExtensions.LabelForModel Metoda
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
LabelForModel(IHtmlHelper) |
<Zwraca element etykiety> dla bieżącego modelu. |
LabelForModel(IHtmlHelper, Object) |
<Zwraca element etykiety> dla bieżącego modelu. |
LabelForModel(IHtmlHelper, String) |
<Zwraca element etykiety> dla bieżącego modelu. |
LabelForModel(IHtmlHelper, String, Object) |
<Zwraca element etykiety> dla bieżącego modelu. |
- Źródło:
- HtmlHelperLabelExtensions.cs
- Źródło:
- HtmlHelperLabelExtensions.cs
- Źródło:
- HtmlHelperLabelExtensions.cs
<Zwraca element etykiety> dla bieżącego modelu.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Html::IHtmlContent ^ LabelForModel(Microsoft::AspNetCore::Mvc::Rendering::IHtmlHelper ^ htmlHelper);
public static Microsoft.AspNetCore.Html.IHtmlContent LabelForModel (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper);
static member LabelForModel : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper -> Microsoft.AspNetCore.Html.IHtmlContent
<Extension()>
Public Function LabelForModel (htmlHelper As IHtmlHelper) As IHtmlContent
Parametry
- htmlHelper
- IHtmlHelper
Wystąpienie, które IHtmlHelper rozszerza ta metoda.
Zwraca
Nowy IHtmlContent element zawierający etykietę<>.
Dotyczy
ASP.NET Core 9.0 i inne wersje
Produkt | Wersje |
---|---|
ASP.NET Core | 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |
- Źródło:
- HtmlHelperLabelExtensions.cs
- Źródło:
- HtmlHelperLabelExtensions.cs
- Źródło:
- HtmlHelperLabelExtensions.cs
<Zwraca element etykiety> dla bieżącego modelu.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Html::IHtmlContent ^ LabelForModel(Microsoft::AspNetCore::Mvc::Rendering::IHtmlHelper ^ htmlHelper, System::Object ^ htmlAttributes);
public static Microsoft.AspNetCore.Html.IHtmlContent LabelForModel (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, object htmlAttributes);
static member LabelForModel : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * obj -> Microsoft.AspNetCore.Html.IHtmlContent
<Extension()>
Public Function LabelForModel (htmlHelper As IHtmlHelper, htmlAttributes As Object) As IHtmlContent
Parametry
- htmlHelper
- IHtmlHelper
Wystąpienie, które IHtmlHelper rozszerza ta metoda.
- htmlAttributes
- Object
Element Object zawierający atrybuty HTML elementu. Alternatywnie IDictionary<TKey,TValue> wystąpienie zawierające atrybuty HTML.
Zwraca
Nowy IHtmlContent element zawierający etykietę<>.
Dotyczy
ASP.NET Core 9.0 i inne wersje
Produkt | Wersje |
---|---|
ASP.NET Core | 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |
- Źródło:
- HtmlHelperLabelExtensions.cs
- Źródło:
- HtmlHelperLabelExtensions.cs
- Źródło:
- HtmlHelperLabelExtensions.cs
<Zwraca element etykiety> dla bieżącego modelu.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Html::IHtmlContent ^ LabelForModel(Microsoft::AspNetCore::Mvc::Rendering::IHtmlHelper ^ htmlHelper, System::String ^ labelText);
public static Microsoft.AspNetCore.Html.IHtmlContent LabelForModel (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string labelText);
static member LabelForModel : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * string -> Microsoft.AspNetCore.Html.IHtmlContent
<Extension()>
Public Function LabelForModel (htmlHelper As IHtmlHelper, labelText As String) As IHtmlContent
Parametry
- htmlHelper
- IHtmlHelper
Wystąpienie, które IHtmlHelper rozszerza ta metoda.
- labelText
- String
Tekst wewnętrzny elementu.
Zwraca
Nowy IHtmlContent element zawierający etykietę<>.
Dotyczy
ASP.NET Core 9.0 i inne wersje
Produkt | Wersje |
---|---|
ASP.NET Core | 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |
- Źródło:
- HtmlHelperLabelExtensions.cs
- Źródło:
- HtmlHelperLabelExtensions.cs
- Źródło:
- HtmlHelperLabelExtensions.cs
<Zwraca element etykiety> dla bieżącego modelu.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Html::IHtmlContent ^ LabelForModel(Microsoft::AspNetCore::Mvc::Rendering::IHtmlHelper ^ htmlHelper, System::String ^ labelText, System::Object ^ htmlAttributes);
public static Microsoft.AspNetCore.Html.IHtmlContent LabelForModel (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string labelText, object htmlAttributes);
static member LabelForModel : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * string * obj -> Microsoft.AspNetCore.Html.IHtmlContent
<Extension()>
Public Function LabelForModel (htmlHelper As IHtmlHelper, labelText As String, htmlAttributes As Object) As IHtmlContent
Parametry
- htmlHelper
- IHtmlHelper
Wystąpienie, które IHtmlHelper rozszerza ta metoda.
- labelText
- String
Tekst wewnętrzny elementu.
- htmlAttributes
- Object
Element Object zawierający atrybuty HTML elementu. Alternatywnie IDictionary<TKey,TValue> wystąpienie zawierające atrybuty HTML.
Zwraca
Nowy IHtmlContent element zawierający etykietę<>.
Dotyczy
ASP.NET Core 9.0 i inne wersje
Produkt | Wersje |
---|---|
ASP.NET Core | 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |