Прочетете на английски Редактиране

Споделяне чрез


TemplateControl.TestDeviceFilter(String) Method

Definition

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

C#
public virtual bool TestDeviceFilter(string filterName);

Parameters

filterName
String

The browser name to test.

Returns

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

Remarks

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

Applies to

Продукт Версии
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also