TypeLibConverter.GetPrimaryInteropAssembly(Guid, Int32, Int32, Int32, String, String) 方法
定义
获取指定类型库的主互操作程序集的名称和基本代码。Gets the name and code base of a primary interop assembly for a specified type library.
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。The GUID of the type library.
- major
- Int32
类型库的主版本号。The major version number of the type library.
- minor
- Int32
类型库的次版本号。The minor version number of the type library.
- lcid
- Int32
类型库的 LCID。The LCID of the type library.
- asmName
- String
成功返回时,为与 g 关联的主 interop 程序集的名称。On successful return, the name of the primary interop assembly associated with g.
- asmCodeBase
- String
成功返回时,为与 g 关联的主 interop 程序集的基本代码。On successful return, the code base of the primary interop assembly associated with g.
返回
如果在注册表找到主互操作程序集,则为 true;否则为 false。true if the primary interop assembly was found in the registry; otherwise false.