.NET Framework Class Library
HiddenInputAttribute Class
Represents an attribute that is used to indicate whether a property or field value should be rendered as a hidden input element.
Inheritance Hierarchy
System.Object
System.Attribute
System.Web.Mvc.HiddenInputAttribute
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
Visual Basic (Declaration)
<AttributeUsageAttribute(AttributeTargets.Class Or AttributeTargets.Property, AllowMultiple := False, _ Inherited := True)> _ Public NotInheritable Class HiddenInputAttribute _ Inherits Attribute
Visual Basic (Usage)
Dim instance As HiddenInputAttribute
C#
[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Property, AllowMultiple = false, Inherited = true)] public sealed class HiddenInputAttribute : Attribute
Visual C++
[AttributeUsageAttribute(AttributeTargets::Class|AttributeTargets::Property, AllowMultiple = false, Inherited = true)] public ref class HiddenInputAttribute sealed : public Attribute
JScript
public final class HiddenInputAttribute extends Attribute
The HiddenInputAttribute type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
|
HiddenInputAttribute | Initializes a new instance of the HiddenInputAttribute class. |
Properties
| Name | Description | |
|---|---|---|
|
DisplayValue | Gets or sets a value that indicates whether to display the value of the hidden input element. |
|
TypeId | (Inherited from Attribute.) |
Methods
| Name | Description | |
|---|---|---|
|
Equals | (Inherited from Attribute.) |
|
Finalize | (Inherited from Object.) |
|
GetHashCode | (Inherited from Attribute.) |
|
GetType | (Inherited from Object.) |
|
IsDefaultAttribute | (Inherited from Attribute.) |
|
Match | (Inherited from Attribute.) |
|
MemberwiseClone | (Inherited from Object.) |
|
ToString | (Inherited from Object.) |
Explicit Interface Implementations
| Name | Description | |
|---|---|---|
|
_Attribute.GetIDsOfNames | (Inherited from Attribute.) |
|
_Attribute.GetTypeInfo | (Inherited from Attribute.) |
|
_Attribute.GetTypeInfoCount | (Inherited from Attribute.) |
|
_Attribute.Invoke | (Inherited from Attribute.) |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.See Also