อ่านในภาษาอังกฤษ แก้ไข

แชร์ผ่าน


ITypeLibConverter.ConvertAssemblyToTypeLib Method

Definition

Converts an assembly to a COM type library.

C#
public object ConvertAssemblyToTypeLib(System.Reflection.Assembly assembly, string typeLibName, System.Runtime.InteropServices.TypeLibExporterFlags flags, System.Runtime.InteropServices.ITypeLibExporterNotifySink notifySink);

Parameters

assembly
Assembly

The assembly to convert.

typeLibName
String

The file name of the resulting type library.

flags
TypeLibExporterFlags

A TypeLibExporterFlags value indicating any special settings.

notifySink
ITypeLibExporterNotifySink

The ITypeLibExporterNotifySink interface implemented by the caller.

Returns

An object that implements the ITypeLib interface.

Remarks

For more information on ITypeLib, please see its existing documentation in the MSDN library.

Applies to

ผลิตภัณฑ์ เวอร์ชัน
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1