Partager 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
public int CurrentLoad { get; set; }
public:
property int CurrentLoad {
    int get ();
    void set (int value);
}
member CurrentLoad : int with get, set
function get CurrentLoad () : int 
function set CurrentLoad (value : int)

Property Value

Type: 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

Microsoft.VisualStudio.TestTools.LoadTesting Namespace

Other Resources

How to: Create a Load Test Plug-In