Share via


Marshal.GetTypeLibName Méthode

Définition

Récupère le nom d'une bibliothèque de types.

Surcharges

GetTypeLibName(ITypeLib)

Récupère le nom d'une bibliothèque de types.

GetTypeLibName(UCOMITypeLib)
Obsolète.

Récupère le nom d'une bibliothèque de types.

GetTypeLibName(ITypeLib)

Récupère le nom d'une bibliothèque de types.

public:
 static System::String ^ GetTypeLibName(System::Runtime::InteropServices::ComTypes::ITypeLib ^ typelib);
public static string GetTypeLibName (System.Runtime.InteropServices.ComTypes.ITypeLib typelib);
[System.Security.SecurityCritical]
public static string GetTypeLibName (System.Runtime.InteropServices.ComTypes.ITypeLib typelib);
static member GetTypeLibName : System.Runtime.InteropServices.ComTypes.ITypeLib -> string
[<System.Security.SecurityCritical>]
static member GetTypeLibName : System.Runtime.InteropServices.ComTypes.ITypeLib -> string
Public Shared Function GetTypeLibName (typelib As ITypeLib) As String

Paramètres

typelib
ITypeLib

Bibliothèque de types dont le nom doit être récupéré.

Retours

Nom de la bibliothèque de types vers laquelle pointe le paramètre typelib.

Attributs

Exceptions

Le paramètre typelib a la valeur null.

Remarques

Le nom retourné par cette méthode est l’identificateur utilisé avec l’instruction de bibliothèque, par exemple ADODB pour la bibliothèque de types ADO Microsoft. Le nom n’est pas un nom de fichier.

Vous pouvez également récupérer le nom de la bibliothèque de types en appelant la UCOMITypeInfo.GetDocumentation méthode et en passant -1 pour son premier paramètre.

Voir aussi

S’applique à

GetTypeLibName(UCOMITypeLib)

Attention

Use System.Runtime.InteropServices.Marshal.GetTypeLibName(ITypeLib pTLB) instead. http://go.microsoft.com/fwlink/?linkid=14202&ID=0000011.

Récupère le nom d'une bibliothèque de types.

public:
 static System::String ^ GetTypeLibName(System::Runtime::InteropServices::UCOMITypeLib ^ pTLB);
public static string GetTypeLibName (System.Runtime.InteropServices.UCOMITypeLib pTLB);
[System.Obsolete("Use System.Runtime.InteropServices.Marshal.GetTypeLibName(ITypeLib pTLB) instead. http://go.microsoft.com/fwlink/?linkid=14202&ID=0000011.", false)]
public static string GetTypeLibName (System.Runtime.InteropServices.UCOMITypeLib pTLB);
[System.Obsolete("Use System.Runtime.InteropServices.Marshal.GetTypeLibName(ITypeLib pTLB) instead. http://go.microsoft.com/fwlink/?linkid=14202&ID=0000011.", false)]
[System.Security.SecurityCritical]
public static string GetTypeLibName (System.Runtime.InteropServices.UCOMITypeLib pTLB);
static member GetTypeLibName : System.Runtime.InteropServices.UCOMITypeLib -> string
[<System.Obsolete("Use System.Runtime.InteropServices.Marshal.GetTypeLibName(ITypeLib pTLB) instead. http://go.microsoft.com/fwlink/?linkid=14202&ID=0000011.", false)>]
static member GetTypeLibName : System.Runtime.InteropServices.UCOMITypeLib -> string
[<System.Obsolete("Use System.Runtime.InteropServices.Marshal.GetTypeLibName(ITypeLib pTLB) instead. http://go.microsoft.com/fwlink/?linkid=14202&ID=0000011.", false)>]
[<System.Security.SecurityCritical>]
static member GetTypeLibName : System.Runtime.InteropServices.UCOMITypeLib -> string
Public Shared Function GetTypeLibName (pTLB As UCOMITypeLib) As String

Paramètres

pTLB
UCOMITypeLib

Bibliothèque de types dont le nom doit être récupéré.

Retours

Nom de la bibliothèque de types vers laquelle pointe le paramètre pTLB.

Attributs

Remarques

Le nom retourné par cette méthode est l’identificateur utilisé avec l’instruction de bibliothèque, par exemple ADODB pour la bibliothèque de types ADO Microsoft. Le nom n’est pas un nom de fichier.

Vous pouvez également récupérer le nom de la bibliothèque de types en appelant la UCOMITypeInfo.GetDocumentation méthode et en passant -1 pour son premier paramètre.

Voir aussi

S’applique à