TypeBuilder.GetInterface(String, Boolean) 메서드

정의

지정된 인터페이스 이름과 일치하는 정규화된 이름을 사용하여 이 클래스에 의해 (직접 또는 간접적으로) 구현된 인터페이스를 반환합니다.

public:
 override Type ^ GetInterface(System::String ^ name, bool ignoreCase);
public override Type? GetInterface (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을 반환합니다.

예외

이 메서드는 불완전한 형식에 대해 구현되지 않습니다.

설명

또는 Assembly.GetType 를 사용하여 Type.GetType 형식을 검색하고 검색된 형식에서 리플렉션을 사용합니다.

적용 대상