HtmlHelperLabelExtensions.Label Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Label(IHtmlHelper, String) |
Returns a <label> element for the specified |
Label(IHtmlHelper, String, String) |
Returns a <label> element for the specified |
Label(IHtmlHelper, String)
- Source:
- HtmlHelperLabelExtensions.cs
- Source:
- HtmlHelperLabelExtensions.cs
- Source:
- HtmlHelperLabelExtensions.cs
Returns a <label> element for the specified expression
.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Html::IHtmlContent ^ Label(Microsoft::AspNetCore::Mvc::Rendering::IHtmlHelper ^ htmlHelper, System::String ^ expression);
public static Microsoft.AspNetCore.Html.IHtmlContent Label (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression);
static member Label : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * string -> Microsoft.AspNetCore.Html.IHtmlContent
<Extension()>
Public Function Label (htmlHelper As IHtmlHelper, expression As String) As IHtmlContent
Parameters
- htmlHelper
- IHtmlHelper
The IHtmlHelper instance this method extends.
- expression
- String
Expression name, relative to the current model.
Returns
A new IHtmlContent containing the <label> element.
Applies to
Label(IHtmlHelper, String, String)
- Source:
- HtmlHelperLabelExtensions.cs
- Source:
- HtmlHelperLabelExtensions.cs
- Source:
- HtmlHelperLabelExtensions.cs
Returns a <label> element for the specified expression
.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Html::IHtmlContent ^ Label(Microsoft::AspNetCore::Mvc::Rendering::IHtmlHelper ^ htmlHelper, System::String ^ expression, System::String ^ labelText);
public static Microsoft.AspNetCore.Html.IHtmlContent Label (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression, string labelText);
static member Label : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * string * string -> Microsoft.AspNetCore.Html.IHtmlContent
<Extension()>
Public Function Label (htmlHelper As IHtmlHelper, expression As String, labelText As String) As IHtmlContent
Parameters
- htmlHelper
- IHtmlHelper
The IHtmlHelper instance this method extends.
- expression
- String
Expression name, relative to the current model.
- labelText
- String
The inner text of the element.
Returns
A new IHtmlContent containing the <label> element.