DynamicTypeService 类

定义

重要

此 API 不符合 CLS。

为项目提供的实例 ITypeResolutionService

public ref class DynamicTypeService abstract
[Windows::Foundation::Metadata::WebHostHidden]
public ref class DynamicTypeService abstract
[Windows::Foundation::Metadata::WebHostHidden]
class DynamicTypeService abstract
[System.CLSCompliant(false)]
[System.Runtime.InteropServices.Guid("FC43BF19-86FE-4255-901E-15C8D236F3A4")]
public abstract class DynamicTypeService
[<System.CLSCompliant(false)>]
[<System.Runtime.InteropServices.Guid("FC43BF19-86FE-4255-901E-15C8D236F3A4")>]
type DynamicTypeService = class
Public MustInherit Class DynamicTypeService
继承
DynamicTypeService
属性

构造函数

DynamicTypeService()

初始化 DynamicTypeService 的新实例。

方法

CreateDynamicAssembly(String)

此方法创建一个新的程序集,其内容为给定的程序集文件。

GetContextTypeResolver(IVsHierarchy)

为指定的层次结构节点获取类型解析程序。

GetContextTypeResolver(IVsHierarchy, UInt32)

获取指定的层次结构节点和项 ID 的类型解析器。

GetTypeDiscoveryService(IVsHierarchy)

为指定的层次结构节点获取类型发现服务。

GetTypeDiscoveryService(IVsHierarchy, UInt32)

获取指定的层次结构节点和项 ID 的类型发现服务。

GetTypeResolutionService(IVsHierarchy)

获取给定层次结构节点的类型解析服务。

GetTypeResolutionService(IVsHierarchy, UInt32)

获取给定层次结构节点和项 ID 的类型解析服务。

IsDynamicAssembly(AssemblyName)

确定是否已动态创建指定的程序集。

OnAssemblyDeleted(AssemblyDeletedEventArgs)

删除程序集时引发。

OnAssemblyObsolete(AssemblyObsoleteEventArgs)

程序集已过时引发。

OnAssemblyRefreshed(AssemblyRefreshedEventArgs)

当程序集已刷新(例如,在重新生成和名称或配置已更改时)时引发。

OnTypeObsolete(TypeObsoleteEventArgs)

当类型已过时(即当它不再解析时)时引发。

事件

AssemblyDeleted

删除程序集时通知客户端。

AssemblyObsolete

当程序集被废弃时(即当它不再解析时)通知客户端。

AssemblyRefreshed

当程序集已刷新(例如,在重新生成和名称或配置已更改时)时通知客户端。

TypeObsolete

当类型已过时(即当它不再解析时)时通知客户端。

适用于