HtmlHelper.GenerateDisplay(ModelExplorer, String, String, Object) Method

Definition

Generate a display.

C#
protected virtual Microsoft.AspNetCore.Html.IHtmlContent GenerateDisplay (Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string htmlFieldName, string templateName, object additionalViewData);

Parameters

modelExplorer
ModelExplorer

The ModelExplorer.

htmlFieldName
String

The name of the html field.

templateName
String

The name of the template.

additionalViewData
Object

The additional view data, either an IDictionary<TKey,TValue> or some other object whose public properties will be merged with the ViewDataDictionary.

Returns

IHtmlContent.

Applies to

Tuote Versiot
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0