ITypeLibConverter.GetPrimaryInteropAssembly 方法

定義

取得指定的型別程式庫主要 Interop 組件的名稱和程式碼基底。

public:
 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
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

主要 Interop 組件的名稱 (在成功地傳回時),與 g 相關聯。

asmCodeBase
String

主要 Interop 組件的程式碼基底 (在成功地傳回時),與 g 相關聯。

傳回

如果主要 Interop 組件在登錄中找到,則為 true﹔否則為 false

適用於