HiddenInputAttribute Class¶
Indicates associated property or all properties of associated type should be edited using an <input> element of type “hidden”.
- Namespace
Microsoft.AspNetCore.Mvc
- Assemblies
- Microsoft.AspNetCore.Mvc.DataAnnotations
Inheritance Hierarchy¶
System.Object
System.Attribute
Microsoft.AspNetCore.Mvc.HiddenInputAttribute
Syntax¶
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public sealed class HiddenInputAttribute : Attribute, _Attribute
-
class
Microsoft.AspNetCore.Mvc.
HiddenInputAttribute
Constructors¶
-
HiddenInputAttribute
()¶ Instantiates a new instance of the
Microsoft.AspNetCore.Mvc.HiddenInputAttribute
class.public HiddenInputAttribute()
-
Properties¶
-
Microsoft.AspNetCore.Mvc.HiddenInputAttribute.
DisplayValue
¶ Gets or sets a value indicating whether to display the value as well as provide a hidden <input> element. The default value is <code>true</code>.
Return type: System.Boolean public bool DisplayValue { get; set; }
-