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.

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

public enum TypeLibImporterFlags

Member nameDescription
NoneSpecifies no flags. This is the default.
PrimaryInteropAssemblyGenerates a primary interop assembly. See PrimaryInteropAssemblyAttribute for details. A keyfile must be specified.
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.
SafeArrayAsSystemArrayImports all SAFEARRAYs as System.Array rather than a typed, single dimensional, zero-based managed array. This option is useful when dealing with multi dimensional, non zero-based SAFEARRAYs which otherwise can not be accessed unless you edit the resulting assembly using the ILDASM and ILASM tools.
TransformDispRetValsTransforms [out, retval] parameters of methods on dispatch-only interfaces (dispinterfaces) into return values.
PreventClassMembersNot used.
SerializableValueClassesSpecifies the use of serailizable classes.
ImportAsX86Imports a type library for the X86 platform.
ImportAsX64Imports a type library for the X86 64 bit platform.
ImportAsItaniumImports a type library for the Itanuim platform.
ImportAsAgnosticImports a type library for any platform.
ReflectionOnlyLoadingSpecifies the use of reflection only loading.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0