TemplateControl::TestDeviceFilter Method (String^)

 

Returns a Boolean value indicating whether a device filter applies to the HTTP request.

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

public:
virtual bool TestDeviceFilter(
	String^ filterName
)

Parameters

filterName
Type: System::String^

The browser name to test.

Return Value

Type: System::Boolean

true if the client browser specified in filterName is the same as the specified browser; otherwise, false. The default is false.

The TestDeviceFilter method invokes the IsBrowser method. For more information on device filtering, see ASP.NET Device Filtering Overview.

.NET Framework
Available since 2.0
Return to top
Show: