FilterableAttribute.IsTypeFilterable(Type) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷指定的資料型別是否支援裝置篩選。
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
參數中包含的資料型別支援裝置篩選,則為 true
,否則為 false
。
例外狀況
type
參數為 null
。
備註
IsTypeFilterable使用 方法來判斷指定的類型是否支援裝置篩選。 如果類型已 FilterableAttribute 套用屬性,則類型支援裝置篩選。