InternalTestFailureException 构造函数 (SerializationInfo, StreamingContext)

用序列化数据初始化 InternalTestFailureException 类的新实例。

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

语法

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

参数

异常

异常 条件
ArgumentNullException

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

SerializationException

类名称是 nullnull 引用(在 Visual Basic 中为 Nothing)

备注

在反序列化过程中调用该构造函数来重建通过流传输的异常对象。 有关更多信息,请参见 XML and SOAP Serialization

.NET Framework 安全性

请参见

参考

InternalTestFailureException 类

InternalTestFailureException 重载

Microsoft.VisualStudio.TestTools.UnitTesting 命名空间