Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
TestDeviceFilter Method

TemplateControl::TestDeviceFilter Method

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft