LoadTestConstantLoadProfile.MaxUserCount 属性

获取或设置最大用户计数。最大用户计数与 LoadTestConstantLoadProfile 类的 UserCount 相同。

命名空间:  Microsoft.VisualStudio.TestTools.LoadTesting
程序集:  Microsoft.VisualStudio.QualityTools.LoadTestFramework(在 Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll 中)

语法

声明
Public Overrides Property MaxUserCount As Integer
public override int MaxUserCount { get; set; }
public:
virtual property int MaxUserCount {
    int get () override;
    void set (int value) override;
}
abstract MaxUserCount : int with get, set
override MaxUserCount : int with get, set
override function get MaxUserCount () : int
override function set MaxUserCount (value : int)

属性值

类型:System.Int32
最大用户计数。

备注

对任何 LoadTestLoadProfile 类的任何属性的更改都应该在您将 LoadTestLoadProfile 对象分配给 LoadTestScenarioLoadProfile 属性之前进行。在将 LoadTestLoadProfile 对象分配给 LoadProfile 属性后,它将变为只读版本。如果 LoadProfile 对象处于只读状态,则此时尝试设置它的任一属性都将引发异常。若要获取新的可写 LoadProfile 对象,请在 LoadTestGoalBasedLoadProfile 下调用如示例所示的 Copy() 方法。

.NET Framework 安全性

请参见

参考

LoadTestConstantLoadProfile 类

Microsoft.VisualStudio.TestTools.LoadTesting 命名空间