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介面的一部分, 這是控制項在設計工具環境中使用裝置篩選器的特定方式。 IFilterResolutionService.EvaluateFilterThe 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.

適用於

另請參閱