TemplateControl.IFilterResolutionService.EvaluateFilter(String) TemplateControl.IFilterResolutionService.EvaluateFilter(String) TemplateControl.IFilterResolutionService.EvaluateFilter(String) Method

定義

傳回值,指出指定的篩選條件是否為目前篩選條件物件的類型。Returns a value that indicates whether the specified filter is a type of the current filter object.

 virtual bool System.Web.UI.IFilterResolutionService.EvaluateFilter(System::String ^ filterName) = System::Web::UI::IFilterResolutionService::EvaluateFilter;
bool IFilterResolutionService.EvaluateFilter (string filterName);
Function EvaluateFilter (filterName As String) As Boolean Implements IFilterResolutionService.EvaluateFilter

參數

filterName
String String String

裝置篩選條件的名稱。The name of a device filter.

傳回

如果指定的篩選條件是適用於目前篩選條件物件的類型,則為 true;否則為 falsetrue if the specified filter is a type applicable to the current filter object; otherwise, false.

實作

備註

IFilterResolutionService.EvaluateFilter方法屬於IFilterResolutionService介面,這是特定的控制項設計工具的環境中所使用的裝置篩選條件。The IFilterResolutionService.EvaluateFilter method is part of the IFilterResolutionService interface, which is specific to how a control uses device filters in a designer environment. 當控制項剖析或保存在瀏覽器要求,設計工具的環境內容之外IFilterResolutionService提供一個方式來判斷目前的控制會受到以具名的篩選條件和指定的篩選器是否屬於特定的一部分裝置篩選條件的階層。When controls are parsed or persisted in the designer environment outside the context of a browser request, the IFilterResolutionService provides a way to determine if the current control is affected by a named filter and whether a named filter is part of a specific device-filter hierarchy.

適用於

另請參閱