HtmlHelper.GenerateHidden 方法

定义

生成隐藏的 。

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

参数

modelExplorer
ModelExplorer
expression
String
value
Object
useViewData
Boolean
htmlAttributes
Object

一个 Object ,它包含 元素的 HTML 属性。 或者,一个 IDictionary<TKey,TValue> 包含 HTML 属性的实例。

返回

IHtmlContent

适用于