TypeDelegator.GetInterface(String, Boolean) 方法

定义

返回由当前 TypeDelegator 包装的类型实现的指定接口。Returns the specified interface implemented by the type wrapped by the current TypeDelegator.

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

由当前类实现的接口的完全限定名。The fully qualified name of the interface implemented by the current class.

ignoreCase
Boolean

如果忽略大小写,则为 true;否则为 falsetrue if the case is to be ignored; otherwise, false.

返回

Type 对象,表示由当前类(直接或间接)实现的具有匹配指定名称的完全限定名的接口。A Type object representing the interface implemented (directly or indirectly) by the current class with the fully qualified name matching the specified name. 如果未找到匹配名称的接口,则返回 null。If no interface that matches name is found, null is returned.

异常

name 参数为 nullThe name parameter is null.

适用于