HtmlHelper.GenerateDisplay(ModelExplorer, String, String, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Generate a display.
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
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
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for