LoadTestLoadProfile.GetLoad Method
When overridden in a derived class, returns the user load that should be used at the current time in the load test based on the number of seconds since the start of the load test.
Namespace: Microsoft.VisualStudio.TestTools.LoadTesting
Assembly: Microsoft.VisualStudio.QualityTools.LoadTestFramework (in Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll)
Syntax
'Declaration
Public MustOverride Function GetLoad ( _
elapsedSeconds As Integer _
) As Integer
public abstract int GetLoad(
int elapsedSeconds
)
public:
virtual int GetLoad(
int elapsedSeconds
) abstract
abstract GetLoad :
elapsedSeconds:int -> int
public abstract function GetLoad(
elapsedSeconds : int
) : int
Parameters
elapsedSeconds
Type: Int32The number of seconds since the start of the load test.
Return Value
Type: Int32
The user load that should be used at the current time in the load test based on the number of seconds since the start of the load test.
Remarks
This is a virtual method that must be implemented by each class that extends LoadTestLoadProfile.
.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.