ITypeFilterProvider.CanFilterType(Type, Boolean) 方法

定义

返回一个值,该值指示能否筛选指定的类型。

public:
 bool CanFilterType(Type ^ type, bool throwOnError);
public bool CanFilterType (Type type, bool throwOnError);
abstract member CanFilterType : Type * bool -> bool
Public Function CanFilterType (type As Type, throwOnError As Boolean) As Boolean

参数

type
Type

要选中进行筛选的 Type

throwOnError
Boolean

true 则在处理 CanFilterType(Type, Boolean) 时引发异常;否则为 false

返回

Boolean

如果可以筛选指定的类型,则为 true;否则为 false

适用于