ITypeLib2 Interface
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Fournit une définition managée de l’interface ITypeLib2 .
public interface class ITypeLib2 : System::Runtime::InteropServices::ComTypes::ITypeLib
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface ITypeLib2 : System.Runtime.InteropServices.ComTypes.ITypeLib
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
[System.Runtime.InteropServices.Guid("00020411-0000-0000-C000-000000000046")]
public interface ITypeLib2 : System.Runtime.InteropServices.ComTypes.ITypeLib
public interface ITypeLib2 : System.Runtime.InteropServices.ComTypes.ITypeLib
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type ITypeLib2 = interface
interface ITypeLib
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
[<System.Runtime.InteropServices.Guid("00020411-0000-0000-C000-000000000046")>]
type ITypeLib2 = interface
interface ITypeLib
type ITypeLib2 = interface
interface ITypeLib
Public Interface ITypeLib2
Implements ITypeLib
- Attributs
- Implémente
Remarques
Pour plus d’informations, consultez l’interface ITypeLib2.
Le Common Language Runtime lève une exception lorsqu’une méthode COM dans le code natif retourne un HRESULT. Pour plus d’informations, consultez How to : Map HRESULTs and Exceptions.
Méthodes
| Nom | Description |
|---|---|
| FindName(String, Int32, ITypeInfo[], Int32[], Int16) |
Recherche les occurrences d’une description de type dans une bibliothèque de types. |
| GetAllCustData(IntPtr) |
Obtient tous les éléments de données personnalisés pour la bibliothèque. |
| GetCustData(Guid, Object) |
Obtient les données personnalisées. |
| GetDocumentation(Int32, String, String, Int32, String) |
Récupère la chaîne de documentation de la bibliothèque, le nom et le chemin complets du fichier d’aide, ainsi que l’identificateur de contexte de la rubrique d’aide de la bibliothèque dans le fichier d’aide. |
| GetDocumentation2(Int32, String, Int32, String) |
Récupère la chaîne de documentation de la bibliothèque, le nom et le chemin complets du fichier d’aide, le contexte de localisation à utiliser et l’ID de contexte de la rubrique d’aide de la bibliothèque dans le fichier d’aide. |
| GetLibAttr(IntPtr) |
Récupère la structure qui contient les attributs de la bibliothèque. |
| GetLibStatistics(IntPtr, Int32) |
Retourne des statistiques sur une bibliothèque de types requises pour le dimensionnement efficace des tables de hachage. |
| GetTypeComp(ITypeComp) |
Permet à un compilateur client de lier les types, variables, constantes et fonctions globales d’une bibliothèque. |
| GetTypeInfo(Int32, ITypeInfo) |
Récupère la description de type spécifiée dans la bibliothèque. |
| GetTypeInfoCount() |
Retourne le nombre de descriptions de type dans la bibliothèque de types. |
| GetTypeInfoOfGuid(Guid, ITypeInfo) |
Récupère la description de type qui correspond au GUID spécifié. |
| GetTypeInfoType(Int32, TYPEKIND) |
Récupère le type d’une description de type. |
| IsName(String, Int32) |
Indique si une chaîne transmise contient le nom d’un type ou d’un membre décrit dans la bibliothèque. |
| ReleaseTLibAttr(IntPtr) |
Libère la TYPELIBATTR structure obtenue à l’origine à partir de la GetLibAttr(IntPtr) méthode. |