LoadTest.LoadTestStarting Event
Occurs just before the load test begins to run on the agent.
Namespace: Microsoft.VisualStudio.TestTools.LoadTesting
Assembly: Microsoft.VisualStudio.QualityTools.LoadTestFramework (in Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll)
Syntax
'Declaration
Public Event LoadTestStarting As EventHandler
public event EventHandler LoadTestStarting
public:
event EventHandler^ LoadTestStarting {
void add (EventHandler^ value);
void remove (EventHandler^ value);
}
member LoadTestStarting : IEvent<EventHandler,
EventArgs>
JScript does not support events.
Remarks
For more information about how to handle events, see Consuming Events.
Note
If a ILoadTestPlugin implementation has code that should be run before the load test starts on any agent, that code should be placed in the load test plug-in Initialize method instead of in the LoadTestStarting event handler, because the former is guaranteed to run before the load test is started on any agent, whereas the latter is not.
.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.