TypeBuilder.GetInterface(String, Boolean) Méthode

Définition

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é.

S’applique à