FilterableAttribute.IsTypeFilterable(Type) 方法

定義

判斷指定的資料型別是否支援裝置篩選。

public:
 static bool IsTypeFilterable(Type ^ type);
public static bool IsTypeFilterable (Type type);
static member IsTypeFilterable : Type -> bool
Public Shared Function IsTypeFilterable (type As Type) As Boolean

參數

type
Type

Type,表示要測試的資料類型。

傳回

Boolean

如果 type 參數中包含的資料型別支援裝置篩選,則為 true,否則為 false

例外狀況

type 參數為 null

備註

IsTypeFilterable使用 方法來判斷指定的類型是否支援裝置篩選。 如果類型已 FilterableAttribute 套用屬性,則類型支援裝置篩選。

適用於

另請參閱