TypeLibConverter.GetPrimaryInteropAssembly Methode

Definition

Ruft Name und CodeBase einer primären Interop-Assembly für eine angegebene Typbibliothek ab.

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

Parameter

g
Guid

Die GUID der Typbibliothek.

major
Int32

Die Hauptversionsnummer der Typbibliothek.

minor
Int32

Die Nebenversionsnummer der Typbibliothek.

lcid
Int32

Die LCID der Typbibliothek.

asmName
String

Bei erfolgreicher Rückgabe der Name der primären Interop-Assembly, die g zugeordnet ist.

asmCodeBase
String

Bei erfolgreicher Rückgabe die CodeBase der primären Interop-Assembly, die g zugeordnet ist.

Gibt zurück

Boolean

true, wenn die primäre Interop-Assembly in der Registrierung gefunden wurde, andernfalls false.

Implementiert

Gilt für