WebTestContext.IsNewUser 属性

获取一个值,该值指示 Web 性能测试是否正在目标网站的新用户的上下文中运行。

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

语法

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

属性值

类型:System.Boolean
如果 Web 性能测试正在新用户的上下文中运行,则为 true;否则为 false。

.NET Framework 安全性

请参见

参考

WebTestContext 类

Microsoft.VisualStudio.TestTools.WebTesting 命名空间