TypeLibExporterFlags 枚举
定义
指示应该如何生成类型库。Indicates how a type library should be produced.
此枚举有一个 FlagsAttribute 属性,允许按位组合成员值。
public enum class TypeLibExporterFlags
[System.Flags]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public enum TypeLibExporterFlags
type TypeLibExporterFlags =
Public Enum TypeLibExporterFlags
- 继承
- 属性
字段
CallerResolvedReferences | 2 | 允许调用方无需参考注册表便可显式解析类型库引用。Allows the caller to explicitly resolve type library references without consulting the registry. |
ExportAs32Bit | 16 | 在 64 位计算机上编译时,指定类型库导出程序 (Tlbexp.exe) 生成一个 32 位的类型库。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 | 在 32 位计算机上编译时,指定类型库导出程序 (Tlbexp.exe) 生成一个 64 位的类型库。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 | 导出类型库时,.NET Framework 通过使用命名空间的名称修饰类型来解决类型名称冲突;例如, |
OnlyReferenceRegistered | 1 | 如果从 COM 导入的类型没有注册的类型库,则将对此类型的引用导出为 |
注解
与ConvertAssemblyToTypeLib一起使用。Used with ConvertAssemblyToTypeLib.