IFilterResolutionService.CompareFilters Method (String, String)

 

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
Available since 2.0
Return to top
Show: