Επεξεργασία

Κοινή χρήση μέσω


ITypeLibConverter.ConvertAssemblyToTypeLib Method

Definition

Converts an assembly to a COM type library.

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

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