TypePresenter.AllowNull 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置一个值,该值指示字符串 (null) 是否将显示在类型演示器中,这样就可以为类型选择 null。
public:
property bool AllowNull { bool get(); void set(bool value); };
public bool AllowNull { get; set; }
member this.AllowNull : bool with get, set
Public Property AllowNull As Boolean
属性值
true 如果属性可以是 null,则为 ;否则为 false。