共用方式為


WebTestContext.IsNewUser 屬性

取得值,指出 Web 效能測試是否在目標 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 命名空間