共用方式為


LoadTestLoadProfile.MaxUserCount 屬性

取得或設定 GetLoad方法可傳回的最多使用者數目。

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

語法

'宣告
Public Overridable Property MaxUserCount As Integer
public virtual int MaxUserCount { get; set; }
public:
virtual property int MaxUserCount {
    int get ();
    void set (int value);
}
abstract MaxUserCount : int with get, set 
override MaxUserCount : int with get, set
function get MaxUserCount () : int 
function set MaxUserCount (value : int)

屬性值

類型:Int32
最大使用者計數。

備註

對的變更任何屬性如果任何,則在您將設定檔加入至 LoadProfile 屬性之前。 如需範例,請參閱 LoadTestGoalBasedLoadProfile

.NET Framework 安全性

請參閱

參考

LoadTestLoadProfile 類別

Microsoft.VisualStudio.TestTools.LoadTesting 命名空間

LoadTestScenario

LoadTestGoalBasedLoadProfile