This documentation is archived and is not being maintained.

TypeLibImporterFlags Enumeration

Indicates how an assembly should be produced.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

[Visual Basic]
Public Enum TypeLibImporterFlags
public enum TypeLibImporterFlags
__value public enum TypeLibImporterFlags
enum TypeLibImporterFlags


Used with ConvertTypeLibToAssembly.


Member name Description Value
PrimaryInteropAssembly Generates a primary interop assembly. See PrimaryInteropAssemblyAttribute for details. A keyfile must be specified. 1
SafeArrayAsSystemArray Imports all SAFEARRAY s a System.Array rather than a typed, single dimenional, zero-based managed array. This option is useful when dealing with multi dimensional, non zero-based SAFEARRAY s which otherwise can not be accessed unless you edit the resulting assembly using the ILDASM and ILASM tools. 4
TransformDispRetVals 8
UnsafeInterfaces Imports all interfaces as interfaces that suppress the common language runtime's stack crawl for SecurityPermissionFlag.UnmanagedCode permission. Be sure you understand the responsibilities associated with suppressing this security check. 2


Namespace: System.Runtime.InteropServices

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Mscorlib (in Mscorlib.dll)

See Also

System.Runtime.InteropServices Namespace