HiddenInputAttribute 类

定义

指示应使用 <类型为“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
继承
HiddenInputAttribute
属性

注解

重写HiddenInputAttribute继承自基类时,如果继承的属性具有 DisplayValue = false) ,并且UIHintAttribute具有除“HiddenInput”之外的一些值,则应应用 [HiddenInput (DisplayValue = true) ] (。

构造函数

HiddenInputAttribute()

实例化 HiddenInputAttribute 类的新实例。

属性

DisplayValue

获取或设置一个值,该值指示是否显示值并提供隐藏 <的输入> 元素。 默认值为 true

适用于