DesignOnlyAttribute(Boolean) 构造函数

定义

初始化 DesignOnlyAttribute 类的新实例。

public:
 DesignOnlyAttribute(bool isDesignOnly);
public DesignOnlyAttribute (bool isDesignOnly);
new System.ComponentModel.DesignOnlyAttribute : bool -> System.ComponentModel.DesignOnlyAttribute
Public Sub New (isDesignOnly As Boolean)

参数

isDesignOnly
Boolean

如果属性只能在设计时设置,则为 true;如果属性可在设计时和运行时设置,则为 false

适用于