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

適用於