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 介面。

傳回

實作 ITypeLib 介面的物件。

備註

如需 的詳細資訊 ITypeLib,請參閱 MSDN 文件庫中的現有檔。

適用於