Export (0) Print
Expand All
Expand Minimize

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)

[SerializableAttribute]
[FlagsAttribute]
[ComVisibleAttribute(true)]
public enum TypeLibImporterFlags

Member nameDescription
NoneNo special settings. This is the default.
PrimaryInteropAssemblyGenerates a primary interop assembly. For more information, see PrimaryInteropAssemblyAttribute. 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 instead of typed, single-dimensional, zero-based managed arrays. This option is useful when dealing with multi-dimensional, non-zero-based SAFEARRAYs, which otherwise cannot be accessed unless you edit the resulting assembly by using the ILDASM and ILASM tools.
TransformDispRetValsTransforms [out, retval] parameters of methods on dispatch-only interfaces (dispinterfaces) into return values.
PreventClassMembersNot used.
SerializableValueClassesUses serializable 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 Itanium platform.
ImportAsAgnosticImports a type library for any platform.
ReflectionOnlyLoadingUses reflection-only loading.
NoDefineVersionResourcePrevents inclusion of a version resource in the interop assembly. For more information, see DefineVersionInfoResource.

This enumeration is used with the ConvertTypeLibToAssembly method.

.NET Framework

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

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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

Community Additions

ADD
Show:
© 2014 Microsoft