次の方法で共有


HtmlHelper.GenerateLabel(ModelExplorer, String, String, Object) メソッド

定義

ラベルを生成します。

protected:
 virtual Microsoft::AspNetCore::Html::IHtmlContent ^ GenerateLabel(Microsoft::AspNetCore::Mvc::ViewFeatures::ModelExplorer ^ modelExplorer, System::String ^ expression, System::String ^ labelText, System::Object ^ htmlAttributes);
protected virtual Microsoft.AspNetCore.Html.IHtmlContent GenerateLabel (Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, string labelText, object htmlAttributes);
abstract member GenerateLabel : Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer * string * string * obj -> Microsoft.AspNetCore.Html.IHtmlContent
override this.GenerateLabel : Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer * string * string * obj -> Microsoft.AspNetCore.Html.IHtmlContent
Protected Overridable Function GenerateLabel (modelExplorer As ModelExplorer, expression As String, labelText As String, htmlAttributes As Object) As IHtmlContent

パラメーター

modelExplorer
ModelExplorer

ModelExplorer

expression
String

expresion。

labelText
String

ラベル テキスト。

htmlAttributes
Object

Object要素の HTML 属性を格納している 。 または、HTML 属性を IDictionary<TKey,TValue> 含むインスタンスです。

戻り値

IHtmlContent

適用対象