Share via


LoadTestScenario.CurrentLoad Property

Gets or sets the current value for the concurrent user load for this scenario.

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

Syntax

'Declaration
Public Property CurrentLoad As Integer
'Usage
Dim instance As LoadTestScenario 
Dim value As Integer 

value = instance.CurrentLoad

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

Property Value

Type: System.Int32
The current value for the concurrent user load.

Exceptions

Exception Condition
ArgumentOutOfRangeException

Set value is less than 0.

Remarks

A load test plug-in can set this property to change the current user load. This can raise the LoadChanged event if the set value changes the load. After a load test plug-in changes the current user load for the LoadTestScenario, the user load will stay at that level until the load test plug-in changes it again.

.NET Framework Security

See Also

Reference

LoadTestScenario Class

LoadTestScenario Members

Microsoft.VisualStudio.TestTools.LoadTesting Namespace

Other Resources

How to: Create a Load Test Plug-In