DisplayAttribute.AutoGenerateField 屬性

定義

取得或設定值,這個值表示 UI 是否應該自動產生以顯示這個欄位。

public:
 property bool AutoGenerateField { bool get(); void set(bool value); };
public bool AutoGenerateField { get; set; }
member this.AutoGenerateField : bool with get, set
Public Property AutoGenerateField As Boolean

屬性值

如果 UI 應該自動產生以顯示這個欄位,則為 true,否則為 false

例外狀況

在設定屬性值之前嘗試取得屬性值。

備註

請勿使用這個屬性來存取 AutoGenerateField 屬性。 請改用 GetAutoGenerateField 方法。

適用於