共用方式為


HtmlHelper.GenerateDisplay(ModelExplorer, String, String, Object) 方法

定義

產生顯示。

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

參數

modelExplorer
ModelExplorer

ModelExplorer

htmlFieldName
String

html 欄位的名稱。

templateName
String

範本名稱。

additionalViewData
Object

其他檢視資料,或 IDictionary<TKey,TValue> 一些其他物件,其公用屬性將會與 ViewDataDictionary 合併。

傳回

IHtmlContent.

適用於