DekGenius.com
[ Team LiB ] Previous Section Next Section

D.10 Type Library Importer (tlbimp.exe)

Because it is 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]

Table D-10 shows some of the common uses of tlbimp.exe.

Table D-10. Type Library Importer common uses

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.

    [ Team LiB ] Previous Section Next Section