GridView.EnableModelValidation 屬性

定義

取得或設定一個值,指示驗證者控制項是否會處理插入或更新操作期間發生的異常。

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

屬性值

true如果驗證器控制項會處理插入或更新操作中發生的異常;否則,。 false 預設值為 false

適用於