Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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: 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.TestTools.LoadTesting Namespace