共用方式為


LoadTestLoadProfile.RestoreUserCountAfterRestart 方法

將目前的使用者計數還原到重新開機之前的值。

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

語法

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

參數

  • userCountToRestore
    類型:Int32

    在上次重新啟動之前的使用者計數。

.NET Framework 安全性

請參閱

參考

LoadTestLoadProfile 類別

Microsoft.VisualStudio.TestTools.LoadTesting 命名空間