TypeLibImporterFlags TypeLibImporterFlags TypeLibImporterFlags TypeLibImporterFlags Enum


Indicates how an assembly should be produced.

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

public enum class TypeLibImporterFlags
public enum TypeLibImporterFlags
type TypeLibImporterFlags = 
Public Enum TypeLibImporterFlags


ImportAsAgnostic ImportAsAgnostic ImportAsAgnostic ImportAsAgnostic 2048

Imports a type library for any platform.

ImportAsArm ImportAsArm ImportAsArm ImportAsArm 16384

Imports a library for the ARM platform.

ImportAsItanium ImportAsItanium ImportAsItanium ImportAsItanium 1024

Imports a type library for the Itanium platform.

ImportAsX64 ImportAsX64 ImportAsX64 ImportAsX64 512

Imports a type library for the x86 64-bit platform.

ImportAsX86 ImportAsX86 ImportAsX86 ImportAsX86 256

Imports a type library for the x86 platform.

NoDefineVersionResource NoDefineVersionResource NoDefineVersionResource NoDefineVersionResource 8192

Prevents inclusion of a version resource in the interop assembly. For more information, see the DefineVersionInfoResource() method.

None None None None 0

No special settings. This is the default.

PreventClassMembers PreventClassMembers PreventClassMembers PreventClassMembers 16

Not used.

PrimaryInteropAssembly PrimaryInteropAssembly PrimaryInteropAssembly PrimaryInteropAssembly 1

Generates a primary interop assembly. For more information, see the PrimaryInteropAssemblyAttribute attribute. A keyfile must be specified.

ReflectionOnlyLoading ReflectionOnlyLoading ReflectionOnlyLoading ReflectionOnlyLoading 4096

Uses reflection-only loading.

SafeArrayAsSystemArray SafeArrayAsSystemArray SafeArrayAsSystemArray SafeArrayAsSystemArray 4

Imports all SAFEARRAY instances as 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.

SerializableValueClasses SerializableValueClasses SerializableValueClasses SerializableValueClasses 32

Uses serializable classes.

TransformDispRetVals TransformDispRetVals TransformDispRetVals TransformDispRetVals 8

Transforms [out, retval] parameters of methods on dispatch-only interfaces (dispinterface) into return values.

UnsafeInterfaces UnsafeInterfaces UnsafeInterfaces UnsafeInterfaces 2

Imports all interfaces as interfaces that suppress the common language runtime's stack crawl for UnmanagedCode permission. Be sure you understand the responsibilities associated with suppressing this security check.


This enumeration is used with the TypeLibConverter.ConvertTypeLibToAssembly method.

Applies to