Stops the load test on all agents and specifies the exception that caused the abort.
Namespace:  Microsoft.VisualStudio.TestTools.LoadTesting
Assembly:  Microsoft.VisualStudio.QualityTools.LoadTestFramework (in Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll)
Syntax
'Declaration
Public Sub Abort ( _
    exception As Exception _
)
public void Abort(
    Exception exception
)
public:
void Abort(
    Exception^ exception
)
member Abort : 
        exception:Exception -> unit
public function Abort(
    exception : Exception
)
Parameters
exception
Type: ExceptionAn Exception that caused the load test to abort.
Remarks
Raises the LoadTestAborted event.
.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.