TypeBuilder.GetInterface(String, Boolean) Méthode
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.
Retourne l’interface implémentée (directement ou indirectement) par cette classe avec le nom complet correspondant au nom d’interface donné.
public:
override Type ^ GetInterface(System::String ^ name, bool ignoreCase);
public override Type GetInterface(string name, bool ignoreCase);
override this.GetInterface : string * bool -> Type
Public Overrides Function GetInterface (name As String, ignoreCase As Boolean) As Type
Paramètres
- name
- String
Le nom de l’interface.
- ignoreCase
- Boolean
Si true, la recherche ne respecte pas la casse. Si false, la recherche respecte la casse.
Retours
Retourne un Type objet représentant l’interface implémentée. Retourne null si aucun nom correspondant à l’interface n’est trouvé.
Exceptions
Cette méthode n’est pas implémentée pour les types incomplets.
Remarques
Récupérez le type à l’aide Type.GetType ou Assembly.GetType utilisez la réflexion sur le type récupéré.