FilterFactory FilterFactory FilterFactory FilterFactory Class

定義

建立篩選器範本。Creates a filter template.

public ref class FilterFactory
public class FilterFactory
type FilterFactory = class
Public Class FilterFactory
繼承
FilterFactoryFilterFactoryFilterFactoryFilterFactory

範例

資料表資料列篩選的範例會使用預設篩選器範本,請參閱QueryableFilterRepeater類別。For an example of table row filtering uses the default filter templates, see the QueryableFilterRepeater class.

備註

FilterFactory類別用在執行階段動態資料來取得特定的資料行類型的篩選器範本執行個體。The FilterFactory class is used at run time by Dynamic Data to get an instance of a filter template for a specific column type.

您可以覆寫這個類別來自訂如何載入篩選器範本中定義的方法。You can override the methods that are defined in this class to customize how filter templates are loaded. 比方說,自訂實作也可以載入篩選器範本,從不同於預設 ~/DynamicData/Filters 資料夾位置。For example, a custom implementation could load the filter templates from a location different than the default ~/DynamicData/Filters folder.

動態資料提供篩選器範本的外部索引鍵、 Boolean 和列舉型別資料行類型,然後使用顯示答案DropDownList控制項。Dynamic Data provides filter templates for foreign-key, Boolean, and enumeration column types and displays them by using a DropDownList control. 您也可以建立自訂篩選器範本。You can also create custom filter templates.

建構函式

FilterFactory() FilterFactory() FilterFactory() FilterFactory()

初始化 FilterFactory 類別的新執行個體。Initializes a new instance of the FilterFactory class.

方法

CreateFilterControl(MetaColumn, String) CreateFilterControl(MetaColumn, String) CreateFilterControl(MetaColumn, String) CreateFilterControl(MetaColumn, String)

建立篩選器範本的執行個體。Creates an instance of the filter template.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetFilterVirtualPath(MetaColumn, String) GetFilterVirtualPath(MetaColumn, String) GetFilterVirtualPath(MetaColumn, String) GetFilterVirtualPath(MetaColumn, String)

取得篩選器範本的虛擬路徑。Gets the virtual path of the filter template.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

適用於

另請參閱