UsesItemPolicyAttribute 构造函数

初始化 UsesItemPolicyAttribute 类的新实例。

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

语法

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

参数

  • itemPolicyType
    类型:System.Type
    与该扩展相关联的策略类型。

异常

异常 条件
ArgumentNullException

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

.NET Framework 安全性

请参见

参考

UsesItemPolicyAttribute 类

Microsoft.Windows.Design.Policies 命名空间

ItemPolicy

SelectionPolicy

FeatureProvider

FeatureConnectorAttribute

其他资源

功能提供程序和功能连接器

了解 WPF 设计器扩展性