Share via


LoadTestGoalBasedLoadProfile.InitialUserCount Property

Gets or sets the initial user count. This is the number of virtual users to run at the start of the load test before the user load is adjusted, based on the specified goal.

Namespace:  Microsoft.VisualStudio.TestTools.LoadTesting
Assembly:  Microsoft.VisualStudio.QualityTools.LoadTestFramework (in Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll)

Syntax

'Declaration
Public Property InitialUserCount As Integer
'Usage
Dim instance As LoadTestGoalBasedLoadProfile 
Dim value As Integer 

value = instance.InitialUserCount

instance.InitialUserCount = value
public int InitialUserCount { get; set; }
public:
property int InitialUserCount {
    int get ();
    void set (int value);
}
public function get InitialUserCount () : int 
public function set InitialUserCount (value : int)

Property Value

Type: System.Int32
The initial user count.

Remarks

Changes to any of the properties of any of the LoadTestLoadProfile classes should all be made before you assign the LoadTestLoadProfile object to the LoadProfile property of the LoadTestScenario. After the LoadTestLoadProfile object has been assigned to the LoadProfile property, it becomes a read-only version. An exception will be thrown if you try to set any of the properties of the LoadProfile object while it is in the read-only state. To get a new writable LoadProfile object, call the Copy() method as shown in example under LoadTestGoalBasedLoadProfile.

.NET Framework Security

See Also

Reference

LoadTestGoalBasedLoadProfile Class

LoadTestGoalBasedLoadProfile Members

Microsoft.VisualStudio.TestTools.LoadTesting Namespace