从已注册浏览器的列表中获取或设置当前浏览器。
命名空间:  Microsoft.VisualStudio.TestTools.UITesting
程序集:  Microsoft.VisualStudio.TestTools.UITesting(在 Microsoft.VisualStudio.TestTools.UITesting.dll 中)
语法
声明
Public Shared Property CurrentBrowser As String
    Get
    Set
public static string CurrentBrowser { get; set; }
public:
static property String^ CurrentBrowser {
    String^ get ();
    void set (String^ value);
}
static member CurrentBrowser : string with get, set
static function get CurrentBrowser () : String
static function set CurrentBrowser (value : String)
属性值
类型:System.String
当前浏览器窗口。
异常
| 异常 | 条件 | 
|---|---|
| [ArgumentException] | 尝试设置不在注册浏览器列表中的浏览器。 | 
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。