Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

TypeLibImporterFlags Enumeration

Indicates how an assembly should be produced.

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

Namespace:  System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

public enum TypeLibImporterFlags

Member nameDescription
ImportAsAgnosticImports a type library for any platform.
ImportAsArmImports a library for the ARM platform.
ImportAsItaniumImports a type library for the Itanium platform.
ImportAsX64Imports a type library for the x86 64-bit platform.
ImportAsX86Imports a type library for the x86 platform.
NoDefineVersionResourcePrevents inclusion of a version resource in the interop assembly. For more information, see the AssemblyBuilder.DefineVersionInfoResource method.
NoneNo special settings. This is the default.
PreventClassMembersNot used.
PrimaryInteropAssemblyGenerates a primary interop assembly. For more information, see the PrimaryInteropAssemblyAttribute attribute. A keyfile must be specified.
ReflectionOnlyLoadingUses reflection-only loading.
SafeArrayAsSystemArrayImports all SAFEARRAY instances as System.Array instead of typed, single-dimensional, zero-based managed arrays. This option is useful when dealing with multi-dimensional, non-zero-based SAFEARRAY instances, which otherwise cannot be accessed unless you edit the resulting assembly by using the MSIL Disassembler (Ildasm.exe) and MSIL Assembler (Ilasm.exe) tools.
SerializableValueClassesUses serializable classes.
TransformDispRetValsTransforms [out, retval] parameters of methods on dispatch-only interfaces (dispinterface) into return values.
UnsafeInterfacesImports 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.

This enumeration is used with the TypeLibConverter.ConvertTypeLibToAssembly method.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft