This documentation is archived and is not being maintained.

IFilterResolutionService.CompareFilters Method

Returns a value indicating whether a parent-child relationship exists between two specified device filters.

Namespace:  System.Web.UI
Assembly:  System.Web (in System.Web.dll)

int CompareFilters(
	string filter1,
	string filter2
)

Parameters

filter1
Type: System.String
A device filter name.
filter2
Type: System.String
A device filter name

Return Value

Type: System.Int32
1 if the device filter identified by filter1 is a parent of the filter identified by filter2, -1 if the device filter identified by filter2 is a parent of the filter identified by filter1, and 0 if there is no parent-child relationship between the two filters.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: