DetailsView.EnableModelValidation 属性

定义

获取或设置一个值,该值指示是否启用数据模型验证。Gets or sets a value that indicates whether data-model validation is enabled.

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;否则为 falsetrue if data model validation is enabled; otherwise, false.

适用于