Share via


HtmlHelper.Label(String, String, Object) Método

Definição

Retorna um <elemento label> para o especificado expression.

public:
 virtual Microsoft::AspNetCore::Html::IHtmlContent ^ Label(System::String ^ expression, System::String ^ labelText, System::Object ^ htmlAttributes);
public Microsoft.AspNetCore.Html.IHtmlContent Label (string expression, string labelText, object htmlAttributes);
abstract member Label : string * string * obj -> Microsoft.AspNetCore.Html.IHtmlContent
override this.Label : string * string * obj -> Microsoft.AspNetCore.Html.IHtmlContent
Public Function Label (expression As String, labelText As String, htmlAttributes As Object) As IHtmlContent

Parâmetros

expression
String

Nome da expressão, em relação ao modelo atual.

labelText
String

O texto interno do elemento.

htmlAttributes
Object

Um Object que contém os atributos HTML para o elemento . Como alternativa, uma IDictionary<TKey,TValue> instância que contém os atributos HTML.

Retornos

Um novo IHtmlContent que contém o <elemento label> .

Implementações

Aplica-se a