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

屬性值

Boolean

如果應顯示模型狀態錯誤,則為 true,否則為falsetrue if model state errors should be displayed; otherwise, false. 預設為 trueThe default is true.

屬性

適用於