共用方式為


LoadTestGoalBasedLoadProfile.MaxUserCountDecrease 屬性

取得或設定允許減少的最大使用者負載量。

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

語法

'宣告
Public Property MaxUserCountDecrease As Integer
public int MaxUserCountDecrease { get; set; }
public:
property int MaxUserCountDecrease {
    int get ();
    void set (int value);
}
member MaxUserCountDecrease : int with get, set
function get MaxUserCountDecrease () : int
function set MaxUserCountDecrease (value : int)

屬性值

型別:System.Int32
允許減少的最大使用者負載量。

備註

對任何 LoadTestLoadProfile 類別之任何屬性的變更,全部都應該在您將 LoadTestLoadProfile 物件指派給 LoadTestScenario 的 LoadProfile 屬性之前進行。 在將 LoadTestLoadProfile 物件指派給 LoadProfile 屬性之後,該物件就會變成唯讀版本。 如果您在 LoadProfile 物件處於唯讀狀態時嘗試設定它的任何屬性,便會擲回例外狀況。 若要取得新的可寫入 LoadProfile 物件,請依照 LoadTestGoalBasedLoadProfile 底下範例所示,呼叫 Copy() 方法。

.NET Framework 安全性

請參閱

參考

LoadTestGoalBasedLoadProfile 類別

Microsoft.VisualStudio.TestTools.LoadTesting 命名空間