LoadTestGoalBasedLoadProfile.MaxUserCountIncrease 属性

获取或设置最大数量,以根据此数量来增加用户负载。

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

语法

声明
Public Property MaxUserCountIncrease As Integer
public int MaxUserCountIncrease { get; set; }
public:
property int MaxUserCountIncrease {
    int get ();
    void set (int value);
}
member MaxUserCountIncrease : int with get, set
function get MaxUserCountIncrease () : int
function set MaxUserCountIncrease (value : int)

属性值

类型:System.Int32
作为增加用户负载依据的最大数量。

备注

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

.NET Framework 安全性

请参见

参考

LoadTestGoalBasedLoadProfile 类

Microsoft.VisualStudio.TestTools.LoadTesting 命名空间