IBindingListView.Filter 屬性


取得或設定要用來從資料來源所傳回項目集合中排除項目的篩選條件。Gets or sets the filter to be used to exclude items from the collection of items returned by the data source.

 property System::String ^ Filter { System::String ^ get(); void set(System::String ^ value); };
public string Filter { get; set; }
member this.Filter : string with get, set
Public Property Filter As String


要用來在資料來源傳回之項目集合中篩選掉項目的字串。The string used to filter items out in the item collection returned by the data source.


設定 Filter 屬性時,您的 Filter 屬性的執行應該會出現下列行為:當專案索引存取清單或列舉清單時,資料來源只會傳回符合篩選準則的專案。Your implementation of the Filter property should exhibit the following behavior when the Filter property is set: The data source returns only the items that meet the filter criteria when the list is accessed by item index or when the list is enumerated. 篩選字串的定義取決於資料來源的執行,但與設定篩選相關聯的行為應該在 DataColumn.Expression 上建立模型。The definition of the filter string is dependent on the data-source implementation, but the behavior associated with setting the filter should be modeled on DataColumn.Expression.