Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
HiddenInputAttribute Class
Collapse the table of content
Expand the table of content

HiddenInputAttribute Class

Represents an attribute that is used to indicate whether a property or field value should be rendered as a hidden input element.


Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Property, AllowMultiple = false, 
	Inherited = true)]
public sealed class HiddenInputAttribute : Attribute

The HiddenInputAttribute type exposes the following members.

Public methodHiddenInputAttributeInitializes a new instance of the HiddenInputAttribute class.

Public propertyDisplayValueGets or sets a value that indicates whether to display the value of the hidden input element.
Public propertyTypeId (Inherited from Attribute.)

Public methodEquals (Inherited from Attribute.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Attribute.)
Public methodGetType (Inherited from Object.)
Public methodIsDefaultAttribute (Inherited from Attribute.)
Public methodMatch (Inherited from Attribute.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2015 Microsoft