- typeLib
- The object that implements the ITypeLib interface.
- asmFileName
- The file name of the resulting assembly.
- flags
- A System.Runtime.InteropServices.TypeLibImporterFlags value indicating any special settings.
- notifySink
- System.Runtime.InteropServices.ITypeLibImporterNotifySink interface implemented by the caller.
- publicKey
- A byte array containing the public key.
- keyPair
- A System.Reflection.StrongNameKeyPair object containing the public and private cryptographic key pair.
- unsafeInterfaces
- If true, the interfaces require link time checks for System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode permission. If false, the interfaces require run time checks that require a stack walk and are more expensive, but help provide greater protection.
An System.Reflection.Emit.AssemblyBuilder object containing the converted type library.
If you do not want to generate a strong name for your assembly, it is valid for publicKey and keyPair to be null, as long as flags does not equal TypeLibImporterFlags.PrimaryInteropAssembly. Otherwise, at least one of these parameters must be specified. If publicKey is null, the public key in keyPair will be set in the target assembly's manifest metadata and a signature will be generated based on the contents of the assembly. If keyPair is null, publicKey will be set in the target assembly's manifest metadata and no signature will be generated. Specifying both parameters is not generally useful, and can result in an invalid signature.
For more information on ITypeLib, please see its existing documentation in the MSDN library.