NewItemTypesAttribute.FactoryType 属性
获取或设置与此属性相关的工厂类型。
命名空间: Microsoft.Windows.Design.PropertyEditing
程序集: Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)
语法
声明
Public Property FactoryType As Type
Get
Set
public Type FactoryType { get; set; }
public:
property Type^ FactoryType {
Type^ get ();
void set (Type^ value);
}
member FactoryType : Type with get, set
function get FactoryType () : Type
function set FactoryType (value : Type)
属性值
类型:System.Type
一个 Type 对象,表示与此特性关联的类型。
异常
异常 | 条件 |
---|---|
ArgumentException | 类型不从 NewItemFactory 进行派生。 |
ArgumentNullException | 类型为 nullnull 引用(在 Visual Basic 中为 Nothing)。 |
备注
Type 对象肯定能由 NewItemFactory 派生出来。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
请参见
参考
Microsoft.Windows.Design.PropertyEditing 命名空间