TypeLibImporterFlags Enumeration
.NET Framework 4.5
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)
| Member name | Description | |
|---|---|---|
| None | No special settings. This is the default. | |
| PrimaryInteropAssembly | Generates a primary interop assembly. For more information, see the PrimaryInteropAssemblyAttribute attribute. A keyfile must be specified. | |
| 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. | |
| SafeArrayAsSystemArray | Imports 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. | |
| TransformDispRetVals | Transforms [out, retval] parameters of methods on dispatch-only interfaces (dispinterface) into return values. | |
| PreventClassMembers | Not used. | |
| SerializableValueClasses | Uses serializable classes. | |
| ImportAsX86 | Imports a type library for the x86 platform. | |
| ImportAsX64 | Imports a type library for the x86 64-bit platform. | |
| ImportAsItanium | Imports a type library for the Itanium platform. | |
| ImportAsAgnostic | Imports a type library for any platform. | |
| ReflectionOnlyLoading | Uses reflection-only loading. | |
| NoDefineVersionResource | Prevents inclusion of a version resource in the interop assembly. For more information, see the AssemblyBuilder.DefineVersionInfoResource method. | |
| ImportAsArm | Imports a library for the ARM platform. |
This enumeration is used with the TypeLibConverter.ConvertTypeLibToAssembly method.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.