CreationToolAttribute 构造函数

初始化 CreationToolAttribute 类的新实例。

命名空间:  Microsoft.Windows.Design.Interaction
程序集:  Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)

语法

声明
Public Sub New ( _
    toolType As Type _
)
public CreationToolAttribute(
    Type toolType
)
public:
CreationToolAttribute(
    Type^ toolType
)
new : 
        toolType:Type -> CreationToolAttribute
public function CreationToolAttribute(
    toolType : Type
)

参数

  • toolType
    类型:System.Type
    此属性所描述的工具的类型。可以指定 nullnull 引用(在 Visual Basic 中为 Nothing) 以防止公开 CreationTool 基类。

异常

异常 条件
ArgumentException

toolType 不从 CreationTool 派生。

.NET Framework 安全性

请参见

参考

CreationToolAttribute 类

Microsoft.Windows.Design.Interaction 命名空间

其他资源

了解 WPF 设计器扩展性