現在のクラスで実装されている指定したインターフェイスを返します。
Overrides Overloads Public Function GetInterface( _
ByVal name As String, _ ByVal ignoreCase As Boolean _) As Type
[C#]
public override Type GetInterface(stringname,boolignoreCase);
[C++]
public: Type* GetInterface(String* name,boolignoreCase);
[JScript]
public override function GetInterface(
name : String,ignoreCase : Boolean) : Type;
パラメータ
- name
現在のクラスで実装されているインターフェイスの完全限定名。 - ignoreCase
大文字小文字の区別を無視する場合は true 。それ以外の場合は false 。
戻り値
現在のクラスで (直接または間接的に) 実装されていて、完全限定名が指定した名前と一致するインターフェイスを表す Type オブジェクト。名前が一致するインターフェイスが見つからない場合は、null が返されます。
例外
例外の種類 | 条件 |
---|---|
ArgumentNullException | name パラメータが null 参照 (Visual Basic では Nothing) です。 |
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
TypeDelegator クラス | TypeDelegator メンバ | System.Reflection 名前空間 | TypeDelegator.GetInterface オーバーロードの一覧