DataSet.GetObjectData(SerializationInfo, StreamingContext) 方法

定义

使用序列化 DataSet 时所需的数据填充序列化信息对象。Populates a serialization information object with the data needed to serialize the DataSet.

public:
 virtual void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
public virtual void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
abstract member GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
Public Overridable Sub GetObjectData (info As SerializationInfo, context As StreamingContext)

参数

info
SerializationInfo

一个 SerializationInfo,它保存与 DataSet 关联的序列化数据。A SerializationInfo that holds the serialized data associated with the DataSet.

context
StreamingContext

一个 StreamingContext,它包含与 DataSet 关联的序列化流的源和目标。A StreamingContext that contains the source and destination of the serialized stream associated with the DataSet.

实现

例外

info 参数为 nullThe info parameter is null.

适用于

另请参阅