ITypeLibConverter.GetPrimaryInteropAssembly Méthode

Définition

Obtient le nom et la base de code d’un assembly PIA (Primary Interop Assembly) pour une bibliothèque de types spécifiée.

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

Paramètres

g
Guid

GUID de la bibliothèque de types.

major
Int32

Numéro de version principale de la bibliothèque de types.

minor
Int32

Numéro de version secondaire de la bibliothèque de types.

lcid
Int32

LCID de la bibliothèque de types.

asmName
String

En cas de retour correct, nom de l'assembly PIA (Primary Interop Assembly) associé à g.

asmCodeBase
String

En cas de retour réussi, base de code de l'assembly PIA (Primary Interop Assembly) associé à g.

Retours

true si l’assembly PIA (Primary Interop Assembly) est trouvé dans le Registre ; sinon false.

S’applique à