TypeBuilder.GetInterface(String, Boolean) Método

Definición

Devuelve la interfaz implementada (directa o indirectamente) por esta clase con el nombre completo que coincide con el nombre de interfaz especificado.

public:
 override Type ^ GetInterface(System::String ^ name, bool ignoreCase);
[System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.Interfaces)]
public override Type? GetInterface(string name, bool ignoreCase);
public override Type? GetInterface(string name, bool ignoreCase);
public override Type GetInterface(string name, bool ignoreCase);
[<System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.Interfaces)>]
override this.GetInterface : string * bool -> Type
override this.GetInterface : string * bool -> Type
Public Overrides Function GetInterface (name As String, ignoreCase As Boolean) As Type

Parámetros

name
String

El nombre de la interfaz.

ignoreCase
Boolean

Si truees , la búsqueda no distingue mayúsculas de minúsculas. Si falsees , la búsqueda distingue mayúsculas de minúsculas.

Devoluciones

Devuelve un Type objeto que representa la interfaz implementada. Devuelve null si no se encuentra ningún nombre coincidente de interfaz.

Atributos

Excepciones

Este método no se implementa para tipos incompletos.

Comentarios

Recupere el tipo mediante Type.GetType o Assembly.GetType y use la reflexión en el tipo recuperado.

Se aplica a