HtmlHelper.GenerateHidden Method

Definition

Generate a hidden.

C#
protected virtual Microsoft.AspNetCore.Html.IHtmlContent GenerateHidden (Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, object value, bool useViewData, object htmlAttributes);

Parameters

modelExplorer
ModelExplorer
expression
String
value
Object
useViewData
Boolean
htmlAttributes
Object

An Object that contains the HTML attributes for the element. Alternatively, an IDictionary<TKey,TValue> instance containing the HTML attributes.

Returns

The IHtmlContent.

Applies to

Product Versions
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