TypeLibConverter.GetPrimaryInteropAssembly 方法

定义

获取指定类型库的主互操作程序集的名称和基本代码。

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 关联的主 interop 程序集的名称。

asmCodeBase
String

成功返回时,为与 g 关联的主 interop 程序集的基本代码。

返回

Boolean

如果在注册表找到主互操作程序集,则为 true;否则为 false

实现

适用于