共用方式為


LoadTest.Abort 方法 (Exception)

停止所有代理程式上的負載測試,並指出導致中止的例外狀況。

命名空間:  Microsoft.VisualStudio.TestTools.LoadTesting
組件:  Microsoft.VisualStudio.QualityTools.LoadTestFramework (在 Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll 中)

語法

'宣告
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
)

參數

備註

引發 LoadTestAborted 事件。

.NET Framework 安全性

請參閱

參考

LoadTest 類別

Abort 多載

Microsoft.VisualStudio.TestTools.LoadTesting 命名空間