Partager via


LoadTest.Abort Method (Exception)

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

    An Exception that caused the load test to abort.

Remarks

Raises the LoadTestAborted event.

.NET Framework Security

See Also

Reference

LoadTest Class

Abort Overload

Microsoft.VisualStudio.TestTools.LoadTesting Namespace