HiddenInputAttribute Class

Definition

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 true.

Applies to