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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。