ITypeProvider 接口

定义

警告

此 API 现已过时。

定义作为类型容器的服务的行为。Defines the behavior of a service that acts as a container of types.

public interface class ITypeProvider
public interface ITypeProvider
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public interface ITypeProvider
type ITypeProvider = interface
Public Interface ITypeProvider
派生
属性

注解

备注

本材料讨论的类型和命名空间已废弃不用。This material discusses types and namespaces that are obsolete. 有关详细信息,请参阅 Windows Workflow Foundation 4.5 中弃用的类型For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

可以推送 ITypeProvider 作为 WorkflowRuntime 服务,以发现可扩展应用程序标记语言 (XAML) 工作流激活所必需的数据类型。ITypeProvider can be pushed as a WorkflowRuntime service to discover data types that are necessary for extensible Application Markup Language (XAML) workflow activation.

属性

LocalAssembly

在编译过程中为验证正在编译的活动项目中的类型而生成的临时程序集。Temporary assembly that is generated during the compilation process to validate the types in the active project that is being compiled.

ReferencedAssemblies

获取由 Type 引用的所有程序集的集合。Gets a collection of all assemblies referenced by the Type.

TypeLoadErrors

获取由导致 IDictionaryObject 键控的加载错误异常的 ExceptionGets an IDictionary of load error exceptions keyed by the Object causing the Exception.

方法

GetType(String)

获取已命名实体的 TypeGets the Type of the named entity.

GetType(String, Boolean)

获取已命名实体的 TypeGets the Type of the named entity.

GetTypes()

创建并返回包含此实例已知的每个 Type 的数组。Creates and returns an array which contains each Type known to this instance.

事件

TypeLoadErrorsChanged

当修改集合 TypeLoadErrors 时发生。Occurs when the collection TypeLoadErrors is modified.

TypesChanged

当实现此接口的类型提供程序中的类型更改时发生。Occurs when the types in the type provider that implements this interface change. 在类型提供程序中添加或移除程序集或 CodeCompileUnit 时可能发生这种情况。This can happen when an assembly or CodeCompileUnit is added or removed from the type provider.

适用于