WebTestStoppedException 建構函式 (String, Exception)
使用錯誤訊息和造成這個例外狀況之內部 Exception 的參考,初始化 WebTestStoppedException 類別的新執行個體。
命名空間: Microsoft.VisualStudio.TestTools.WebTesting
組件: Microsoft.VisualStudio.QualityTools.WebTestFramework (在 Microsoft.VisualStudio.QualityTools.WebTestFramework.dll 中)
語法
'宣告
Public Sub New ( _
message As String, _
innerException As Exception _
)
public WebTestStoppedException(
string message,
Exception innerException
)
public:
WebTestStoppedException(
String^ message,
Exception^ innerException
)
new :
message:string *
innerException:Exception -> WebTestStoppedException
public function WebTestStoppedException(
message : String,
innerException : Exception
)
參數
message
類型:String解釋例外狀況原因的錯誤訊息。
innerException
類型:Exception導致目前例外狀況的例外。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。