TypeLibConverter.GetPrimaryInteropAssembly 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取指定类型库的主互操作程序集的名称和代码库。
public:
virtual bool GetPrimaryInteropAssembly(Guid g, int major, int minor, int lcid, [Runtime::InteropServices::Out] System::String ^ % asmName, [Runtime::InteropServices::Out] System::String ^ % asmCodeBase);
public bool GetPrimaryInteropAssembly(Guid g, int major, int minor, int lcid, out string asmName, out string asmCodeBase);
abstract member GetPrimaryInteropAssembly : Guid * int * int * int * string * string -> bool
override this.GetPrimaryInteropAssembly : Guid * int * int * int * string * string -> bool
Public Function GetPrimaryInteropAssembly (g As Guid, major As Integer, minor As Integer, lcid As Integer, ByRef asmName As String, ByRef asmCodeBase As String) As Boolean
参数
- g
- Guid
类型库的 GUID。
- major
- Int32
类型库的主要版本号。
- minor
- Int32
类型库的次要版本号。
- lcid
- Int32
类型库的 LCID。
- asmName
- String
成功返回时,与 关联的 g主互操作程序集的名称。
- asmCodeBase
- String
成功返回时,与关联的 g主互操作程序集的代码库。
返回
true 如果在注册表中找到主互操作程序集,则为 ;否则 false。