ConnectionFailedWebTestException 构造函数 (SerializationInfo, StreamingContext)

用序列化数据初始化 ConnectionFailedWebTestException 类的一个新实例,用于远程方案中。

命名空间:  Microsoft.VisualStudio.TestTools.WebTesting
程序集:  Microsoft.VisualStudio.QualityTools.WebTestFramework(在 Microsoft.VisualStudio.QualityTools.WebTestFramework.dll 中)

语法

声明
Protected Sub New ( _
    info As SerializationInfo, _
    context As StreamingContext _
)
protected ConnectionFailedWebTestException(
    SerializationInfo info,
    StreamingContext context
)
protected:
ConnectionFailedWebTestException(
    SerializationInfo^ info, 
    StreamingContext context
)
new : 
        info:SerializationInfo * 
        context:StreamingContext -> ConnectionFailedWebTestException
protected function ConnectionFailedWebTestException(
    info : SerializationInfo, 
    context : StreamingContext
)

参数

异常

异常 条件
ArgumentNullException

info 参数为 nullnull 引用(在 Visual Basic 中为 Nothing)。

SerializationException

类名为 nullnull 引用(在 Visual Basic 中为 Nothing) 或 HResult 为零 (0)。

备注

此构造函数用于反序列化的情形。 当异常从服务器传播到客户端时,远程方案需要它。

.NET Framework 安全性

请参见

参考

ConnectionFailedWebTestException 类

ConnectionFailedWebTestException 重载

Microsoft.VisualStudio.TestTools.WebTesting 命名空间

SerializationInfo

StreamingContext

ArgumentNullException

SerializationException

HResult