HiddenInputAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates associated property or all properties with the associated type should be edited using an <input> element of type "hidden".
public ref class HiddenInputAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public sealed class HiddenInputAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type HiddenInputAttribute = class
inherit Attribute
Public NotInheritable Class HiddenInputAttribute
Inherits Attribute
- Inheritance
-
HiddenInputAttribute
- Attributes
Remarks
When overriding a HiddenInputAttribute inherited from a base class, should apply both [HiddenInput(DisplayValue = true)]
(if the inherited attribute had DisplayValue = false
) and a UIHintAttribute with some value other than "HiddenInput".
Constructors
HiddenInputAttribute() |
Instantiates a new instance of the HiddenInputAttribute class. |
Properties
DisplayValue |
Gets or sets a value indicating whether to display the value as well as provide a hidden <input>
element. The default value is |