IESettings.ThrowIfBrowserVersionNotSupported 方法

验证当前安装的 Internet Explorer 版本是否受支持。如果不受支持,则是否引发异常。

命名空间:  Microsoft.VisualStudio.TestTools.UITest.Common
程序集:  Microsoft.VisualStudio.TestTools.UITest.Common(在 Microsoft.VisualStudio.TestTools.UITest.Common.dll 中)

语法

声明
Public Shared Sub ThrowIfBrowserVersionNotSupported
public static void ThrowIfBrowserVersionNotSupported()
public:
static void ThrowIfBrowserVersionNotSupported()
static member ThrowIfBrowserVersionNotSupported : unit -> unit 
public static function ThrowIfBrowserVersionNotSupported()

异常

异常 条件
TechnologyNotSupportedException

当前 Internet Explorer 版本不受 UI 测试框架支持,或 Internet Explorer 未安装。

.NET Framework 安全性

请参见

参考

IESettings 类

Microsoft.VisualStudio.TestTools.UITest.Common 命名空间