TemplateControl.TestDeviceFilter(String) TemplateControl.TestDeviceFilter(String) TemplateControl.TestDeviceFilter(String) TemplateControl.TestDeviceFilter(String) Method

定義

傳回布林值,指出裝置篩選條件是否套用至 HTTP 要求。Returns a Boolean value indicating whether a device filter applies to the HTTP request.

public:
 virtual bool TestDeviceFilter(System::String ^ filterName);
public virtual bool TestDeviceFilter (string filterName);
abstract member TestDeviceFilter : string -> bool
override this.TestDeviceFilter : string -> bool
Public Overridable Function TestDeviceFilter (filterName As String) As Boolean

參數

filterName
String String String String

要測試的瀏覽器名稱。The browser name to test.

傳回

如果 filterName 中所指定的用戶端瀏覽器和指定的瀏覽器相同,則為 true,否則為 falsetrue if the client browser specified in filterName is the same as the specified browser; otherwise, false. 預設為 falseThe default is false.

備註

TestDeviceFilter方法會叫用IsBrowser方法。The TestDeviceFilter method invokes the IsBrowser method. 如需有關裝置篩選的詳細資訊,請參閱 < 裝置篩選概觀For more information on device filtering, see Device Filtering Overview.

適用於

另請參閱