ValidationSummary.ShowModelStateErrors 屬性
定義
取得或設定值,這個值指定是否應該顯示模型狀態錯誤。Gets or sets a value that specifies whether model-state errors should be displayed.
public:
property bool ShowModelStateErrors { bool get(); void set(bool value); };
[System.Web.UI.Themeable(false)]
public bool ShowModelStateErrors { get; set; }
[<System.Web.UI.Themeable(false)>]
member this.ShowModelStateErrors : bool with get, set
Public Property ShowModelStateErrors As Boolean
屬性值
如果應顯示模型狀態錯誤,則為 true
,否則為false
。true
if model state errors should be displayed; otherwise, false
. 預設為 true
。The default is true
.
- 屬性