TemplateControl.TestDeviceFilter Method (String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: