BrowserWindow.AllowPopups 属性

获取或设置一个值,该值确定 Web 浏览器窗口是否允许弹出窗口。

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

语法

声明
Public Shared Property AllowPopups As Boolean
    Get
    Set
public static bool AllowPopups { get; set; }
public:
static property bool AllowPopups {
    bool get ();
    void set (bool value);
}
static member AllowPopups : bool with get, set
static function get AllowPopups () : boolean
static function set AllowPopups (value : boolean)

属性值

类型:System.Boolean
如果 Web 浏览器窗口允许弹出窗口,则为 true;否则为 false。

.NET Framework 安全性

请参见

参考

BrowserWindow 类

Microsoft.VisualStudio.TestTools.UITesting 命名空间