ModelFactory.ResolveType 方法

[本文档仅供预览,在以后的发行版中可能会发生更改。包含的空白主题用作占位符。]

获取指定 TypeIdentifier 的已解析类型。

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

语法

声明
Public Shared Function ResolveType ( _
    context As EditingContext, _
    typeIdentifier As TypeIdentifier _
) As Type
public static Type ResolveType(
    EditingContext context,
    TypeIdentifier typeIdentifier
)
public:
static Type^ ResolveType(
    EditingContext^ context, 
    TypeIdentifier typeIdentifier
)
static member ResolveType : 
        context:EditingContext * 
        typeIdentifier:TypeIdentifier -> Type 
public static function ResolveType(
    context : EditingContext, 
    typeIdentifier : TypeIdentifier
) : Type

参数

返回值

类型:System.Type
设计器的一个被引用程序集中的与 typeIdentifier 匹配的类型。

异常

异常 条件
ArgumentNullException

context 或 typeIdentifier 为 nulla null reference (Nothing in Visual Basic)。

.NET Framework 安全性

请参见

参考

ModelFactory 类

Microsoft.Windows.Design.Model 命名空间

其他资源

WPF 设计器扩展性

编辑模型体系结构