TypeBuilder.GetInterface(String, Boolean) メソッド

定義

指定されたインターフェイス名と一致する完全修飾名を持つ、このクラスによって実装された (直接または間接的に) インターフェイスを返します。

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

パラメーター

name
String

インターフェイスの名前。

ignoreCase
Boolean

true場合、検索では大文字と小文字が区別されません。 false場合、検索では大文字と小文字が区別されます。

返品

実装されているインターフェイスを表す Type オブジェクトを返します。 インターフェイスに一致する名前が見つからない場合は null を返します。

例外

このメソッドは、不完全な型には実装されません。

注釈

Type.GetTypeまたはAssembly.GetTypeを使用して型を取得し、取得した型にリフレクションを使用します。

適用対象