共用方式為


LoadTestGoalBasedLoadProfile.RestoreUserCountAfterRestart 方法

將目前 (重新啟動後) 的使用者計數還原為重新啟動前的值。

命名空間:  Microsoft.VisualStudio.TestTools.LoadTesting
組件:  Microsoft.VisualStudio.QualityTools.LoadTestFramework (在 Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll 中)

語法

'宣告
Public Overrides Sub RestoreUserCountAfterRestart ( _
    userCountToRestore As Integer _
)
public override void RestoreUserCountAfterRestart(
    int userCountToRestore
)
public:
virtual void RestoreUserCountAfterRestart(
    int userCountToRestore
) override
abstract RestoreUserCountAfterRestart : 
        userCountToRestore:int -> unit 
override RestoreUserCountAfterRestart : 
        userCountToRestore:int -> unit 
public override function RestoreUserCountAfterRestart(
    userCountToRestore : int
)

參數

  • userCountToRestore
    型別:System.Int32
    用於更新目前使用者計數的重新啟動之前的使用者計數。

.NET Framework 安全性

請參閱

參考

LoadTestGoalBasedLoadProfile 類別

Microsoft.VisualStudio.TestTools.LoadTesting 命名空間