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

適用於