ITypeLibConverter.ConvertAssemblyToTypeLib 方法

定义

将程序集转换为 COM 类型库。

public:
 System::Object ^ ConvertAssemblyToTypeLib(System::Reflection::Assembly ^ assembly, System::String ^ typeLibName, System::Runtime::InteropServices::TypeLibExporterFlags flags, System::Runtime::InteropServices::ITypeLibExporterNotifySink ^ notifySink);
public object ConvertAssemblyToTypeLib (System.Reflection.Assembly assembly, string typeLibName, System.Runtime.InteropServices.TypeLibExporterFlags flags, System.Runtime.InteropServices.ITypeLibExporterNotifySink notifySink);
abstract member ConvertAssemblyToTypeLib : System.Reflection.Assembly * string * System.Runtime.InteropServices.TypeLibExporterFlags * System.Runtime.InteropServices.ITypeLibExporterNotifySink -> obj
Public Function ConvertAssemblyToTypeLib (assembly As Assembly, typeLibName As String, flags As TypeLibExporterFlags, notifySink As ITypeLibExporterNotifySink) As Object

参数

assembly
Assembly

要转换的程序集。

typeLibName
String

产生的类型库的文件名。

flags
TypeLibExporterFlags

指示任何特殊设置的 TypeLibExporterFlags 值。

notifySink
ITypeLibExporterNotifySink

由调用方实现的 ITypeLibExporterNotifySink 接口。

返回

Object

一个实现 ITypeLib 接口的对象。

注解

有关的详细信息 ITypeLib ,请参阅 MSDN library 中的现有文档。

适用于