WebTestEmptyTableException 构造函数 (SerializationInfo, StreamingContext)
使用序列化数据初始化 WebTestEmptyTableException 类的新实例。
命名空间: Microsoft.VisualStudio.TestTools.WebTesting
程序集: Microsoft.VisualStudio.QualityTools.WebTestFramework(在 Microsoft.VisualStudio.QualityTools.WebTestFramework.dll 中)
语法
声明
Protected Sub New ( _
info As SerializationInfo, _
context As StreamingContext _
)
protected WebTestEmptyTableException(
SerializationInfo info,
StreamingContext context
)
protected:
WebTestEmptyTableException(
SerializationInfo^ info,
StreamingContext context
)
new :
info:SerializationInfo *
context:StreamingContext -> WebTestEmptyTableException
protected function WebTestEmptyTableException(
info : SerializationInfo,
context : StreamingContext
)
参数
- info
类型:System.Runtime.Serialization.SerializationInfo
SerializationInfo ,它存有有关所引发异常的序列化的对象数据。
- context
类型:System.Runtime.Serialization.StreamingContext
StreamingContext ,它包含有关源或目标的上下文信息。
备注
在反序列化过程中调用该构造函数来重建通过流传输的异常对象。 有关更多信息,请参见 XML and SOAP Serialization。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。