ISerializationSurrogate 接口
定义
实现序列化代理项选择器,此选择器允许一个对象对另一个对象执行序列化和反序列化。Implements a serialization surrogate selector that allows one object to perform serialization and deserialization of another.
public interface class ISerializationSurrogate
public interface ISerializationSurrogate
[System.Runtime.InteropServices.ComVisible(true)]
public interface ISerializationSurrogate
type ISerializationSurrogate = interface
[<System.Runtime.InteropServices.ComVisible(true)>]
type ISerializationSurrogate = interface
Public Interface ISerializationSurrogate
- 属性
方法
| GetObjectData(Object, SerializationInfo, StreamingContext) |
使用序列化对象所需的数据填充所提供的 SerializationInfo。Populates the provided SerializationInfo with the data needed to serialize the object. |
| SetObjectData(Object, SerializationInfo, StreamingContext, ISurrogateSelector) |
使用 SerializationInfo 中的信息填充对象。Populates the object using the information in the SerializationInfo. |