NewItemTypesAttribute 构造函数 (Type)

初始化 NewItemTypesAttribute 类的新实例。

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

语法

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

参数

  • type
    类型:System.Type
    一个 Type 对象,此特性将其声明为有效的新项类型。

异常

异常 条件
ArgumentNullException

type 为 nullnull 引用(在 Visual Basic 中为 Nothing)。

.NET Framework 安全性

请参见

参考

NewItemTypesAttribute 类

NewItemTypesAttribute 重载

Microsoft.Windows.Design.PropertyEditing 命名空间

NewItemFactory

其他资源

属性编辑体系结构

WPF 设计器扩展性