共用方式為


WebTestStoppedException 建構函式 (SerializationInfo, StreamingContext)

針對遠端案例,初始化 WebTestStoppedException 類別的新執行個體。

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

語法

'宣告
Protected Sub New ( _
    info As SerializationInfo, _
    context As StreamingContext _
)
protected WebTestStoppedException(
    SerializationInfo info,
    StreamingContext context
)
protected:
WebTestStoppedException(
    SerializationInfo^ info, 
    StreamingContext context
)
new : 
        info:SerializationInfo * 
        context:StreamingContext -> WebTestStoppedException
protected function WebTestStoppedException(
    info : SerializationInfo, 
    context : StreamingContext
)

參數

例外狀況

例外狀況 條件
ArgumentNullException

info 為 nullnull 參考 (即 Visual Basic 中的 Nothing)。

.NET Framework 安全性

請參閱

參考

WebTestStoppedException 類別

WebTestStoppedException 多載

Microsoft.VisualStudio.TestTools.WebTesting 命名空間