Type Library Importer (tlbimp.exe)

As the reverse tool of the type library exporter, the importer generates a .NET proxy component for a COM component so that .NET components can use legacy COM components. The general syntax for tlbimp.exe is:

tlbimp PEFile [options]

The following table shows some of the common usages of tlbimp.exe :

Option

Description

/keycontainer: keycontainer

This option signs the resulting assembly with the private key in the keycontainer. The public key in the keyfile will be used in the assembly manifest. See sn.exe for the keycontainer generation.

/keyfile: keyfile

This options signs the resulting assembly with the private key in the keyfile. The public key in the keyfile will be used in the assembly manifest. See sn.exe for keyfile generation.

/nologo

This option suppresses the logo of the tlbimp executable.

/out:filename

filename is the name of the type library file.

/silent

This option suppresses all messages from the tlbimp executable.

/unsafe

This option produces interfaces without .NET Framework security checks.

/verbose

This option displays extra information while converting the component.

/? or /help

This option displays the help information for the tool.

Get .Net Framework Essentials now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.