HiddenInputAttribute Class

Summary

Indicates associated property or all properties of associated type should be edited using an <input> element of type “hidden”.

Syntax

public sealed class HiddenInputAttribute : Attribute, _Attribute

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.HiddenInputAttribute

Constructors

Microsoft.AspNet.Mvc.HiddenInputAttribute.HiddenInputAttribute()

Instantiates a new instance of the [Microsoft.AspNet.Mvc.HiddenInputAttribute](Microsoft.AspNet.Mvc.HiddenInputAttribute.yml) class.

public HiddenInputAttribute()

Properties

DisplayValue()

Gets or sets a value indicating whether to display the value as well as provide a hidden &lt;input&gt; element. The default value is <c>true</c>.

Return type:System.Boolean
public bool DisplayValue { get; set; }