FilterableAttribute.IsPropertyFilterable(PropertyDescriptor) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷屬性是否支援裝置過濾。
public:
static bool IsPropertyFilterable(System::ComponentModel::PropertyDescriptor ^ propertyDescriptor);
public static bool IsPropertyFilterable(System.ComponentModel.PropertyDescriptor propertyDescriptor);
static member IsPropertyFilterable : System.ComponentModel.PropertyDescriptor -> bool
Public Shared Function IsPropertyFilterable (propertyDescriptor As PropertyDescriptor) As Boolean
參數
- propertyDescriptor
- PropertyDescriptor
PropertyDescriptor A 包含要測試性質的性質。
傳回
true如果參數中PropertyDescriptor物件所代表propertyDescriptor的屬性支援裝置過濾;否則, false
備註
使用此 IsPropertyFilterable 方法判斷某個屬性是否支援裝置過濾。 使用此方法時,必須輸入 PropertyDescriptor 包含該屬性屬性的物件來測試。