TypeLibExporterFlags Enum

Definition

Indicates how a type library should be produced.

This enumeration supports a bitwise combination of its member values.

public enum class TypeLibExporterFlags
[System.Flags]
[System.Serializable]
public enum TypeLibExporterFlags
[System.Flags]
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public enum TypeLibExporterFlags
[<System.Flags>]
[<System.Serializable>]
type TypeLibExporterFlags = 
[<System.Flags>]
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type TypeLibExporterFlags = 
Public Enum TypeLibExporterFlags
Inheritance
TypeLibExporterFlags
Attributes

Fields

CallerResolvedReferences 2

Allows the caller to explicitly resolve type library references without consulting the registry.

ExportAs32Bit 16

When compiling on a 64-bit computer, specifies that the Type Library Exporter (Tlbexp.exe) generates a 32-bit type library. All data types are transformed appropriately.

ExportAs64Bit 32

When compiling on a 32-bit computer, specifies that the Type Library Exporter (Tlbexp.exe) generates a 64-bit type library. All data types are transformed appropriately.

None 0

Specifies no flags. This is the default.

OldNames 4

When exporting type libraries, the .NET Framework resolves type name conflicts by decorating the type with the name of the namespace; for example, System.Windows.Forms.HorizontalAlignment is exported as System_Windows_Forms_HorizontalAlignment. When there is a conflict with the name of a type that is not visible from COM, the .NET Framework exports the undecorated name. Set the OldNames flag or use the /oldnames option in the Type Library Exporter (Tlbexp.exe) to force the .NET Framework to export the decorated name. Note that exporting the decorated name was the default behavior in versions prior to the .NET Framework version 2.0.

OnlyReferenceRegistered 1

Exports references to types that were imported from COM as IUnknown if the type does not have a registered type library. Set this flag when you want the type library exporter to look for dependent types in the registry rather than in the same directory as the input assembly.

Remarks

Used with ConvertAssemblyToTypeLib.

Applies to