IHtmlHelper.Label(String, String, Object) Metodo

Definizione

Restituisce un <elemento etichetta> per l'oggetto specificato expression.

public:
 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
Public Function Label (expression As String, labelText As String, htmlAttributes As Object) As IHtmlContent

Parametri

expression
String

Nome dell'espressione, relativo al modello corrente.

labelText
String

Testo interno dell'elemento.

htmlAttributes
Object

Oggetto Object contenente gli attributi HTML per l'elemento. In alternativa, un'istanza IDictionary<TKey,TValue> contenente gli attributi HTML.

Restituisce

Nuovo IHtmlContent contenente l'elemento <label> .

Si applica a