ISerializationSurrogate ISerializationSurrogate ISerializationSurrogate ISerializationSurrogate Interface

定義

實作允許一個物件執行另一個物件序列化 (Serialization) 和還原序列化 (Deserialization) 的序列化代理選取器。Implements a serialization surrogate selector that allows one object to perform serialization and deserialization of another.

public interface class ISerializationSurrogate
[System.Runtime.InteropServices.ComVisible(true)]
public interface ISerializationSurrogate
type ISerializationSurrogate = interface
Public Interface ISerializationSurrogate
屬性

方法

GetObjectData(Object, SerializationInfo, StreamingContext) GetObjectData(Object, SerializationInfo, StreamingContext) GetObjectData(Object, SerializationInfo, StreamingContext) GetObjectData(Object, SerializationInfo, StreamingContext)

將序列化物件所需的資料填入 (Populate) 所提供的 SerializationInfoPopulates the provided SerializationInfo with the data needed to serialize the object.

SetObjectData(Object, SerializationInfo, StreamingContext, ISurrogateSelector) SetObjectData(Object, SerializationInfo, StreamingContext, ISurrogateSelector) SetObjectData(Object, SerializationInfo, StreamingContext, ISurrogateSelector) SetObjectData(Object, SerializationInfo, StreamingContext, ISurrogateSelector)

使用 SerializationInfo 中的資訊填入物件。Populates the object using the information in the SerializationInfo.

適用於