HttpCapabilitiesBase.IFilterResolutionService.CompareFilters 方法

定义

在内部用于比较筛选器。

 virtual int System.Web.UI.IFilterResolutionService.CompareFilters(System::String ^ filter1, System::String ^ filter2) = System::Web::UI::IFilterResolutionService::CompareFilters;
int IFilterResolutionService.CompareFilters (string filter1, string filter2);
abstract member System.Web.UI.IFilterResolutionService.CompareFilters : string * string -> int
override this.System.Web.UI.IFilterResolutionService.CompareFilters : string * string -> int
Function CompareFilters (filter1 As String, filter2 As String) As Integer Implements IFilterResolutionService.CompareFilters

参数

filter1
String

要比较的第一个筛选器。

filter2
String

要比较的第二个筛选器。

返回

如果 filter1filter2 的父级,则为 1;如果 filter2filter1 的父级,则为 -1;如果 filter1filter2 之间不存在父/子关系,则为 0。

实现

适用于