HtmlHelperExtensions.HiddenFor<TModel, TProperty> Method (HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, String, String, String)
Namespace: Microsoft.Web.Mvc.Html
Assembly: Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)
Syntax
public static MvcHtmlString HiddenFor<TModel, TProperty>(
this HtmlHelper<TModel> htmlHelper,
Expression<Func<TModel, TProperty>> expression,
string cssClass = null,
string id = null,
string style = null
)
public:
generic<typename TModel, typename TProperty>
[ExtensionAttribute]
static MvcHtmlString^ HiddenFor(
HtmlHelper<TModel>^ htmlHelper,
Expression<Func<TModel, TProperty>^>^ expression,
String^ cssClass = null,
String^ id = null,
String^ style = null
)
static member HiddenFor<'TModel, 'TProperty> :
htmlHelper:HtmlHelper<'TModel> *
expression:Expression<Func<'TModel, 'TProperty>> *
cssClass:string = null *
id:string = null *
style:string = null -> MvcHtmlString
<ExtensionAttribute>
Public Shared Function HiddenFor(Of TModel, TProperty) (
htmlHelper As HtmlHelper(Of TModel),
expression As Expression(Of Func(Of TModel, TProperty)),
cssClass As String,
id As String,
style As String
) As MvcHtmlString
Parameters
- htmlHelper
Type: System.Web.Mvc.HtmlHelper<TModel>
- expression
Type: System.Linq.Expressions.Expression<Func<TModel, TProperty>>
- cssClass
Type: System.String
- id
Type: System.String
- style
Type: System.String
Return Value
Type: System.Web.Mvc.MvcHtmlString
Type Parameters
- TModel
- TProperty
See Also
HtmlHelperExtensions Class
Microsoft.Web.Mvc.Html Namespace
Return to top