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 命名空间