EditableAttribute(Boolean) 构造函数

定义

初始化 EditableAttribute 类的新实例。

public:
 EditableAttribute(bool allowEdit);
public EditableAttribute(bool allowEdit);
new System.ComponentModel.DataAnnotations.EditableAttribute : bool -> System.ComponentModel.DataAnnotations.EditableAttribute
Public Sub New (allowEdit As Boolean)

参数

allowEdit
Boolean

true 指定该字段是可编辑的;否则,为 false.

适用于