ITypeLibConverter.GetPrimaryInteropAssembly 方法      
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取指定类型库的主互操作程序集的名称和基本代码。
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
 
成功返回时,为与 g 关联的主 interop 程序集的名称。
- asmCodeBase
 - String
 
成功返回时,为与 g 关联的主 interop 程序集的基本代码。
返回
如果在注册表找到主互操作程序集,则为 true;否则为 false。