Formatter.Serialize(Stream, Object) Formatter.Serialize(Stream, Object) Formatter.Serialize(Stream, Object) Formatter.Serialize(Stream, Object) Method

定义

当在派生类中重写时,将具有指定根的对象图形序列化为已经连接到格式化程序的流。When overridden in a derived class, serializes the graph of objects with the specified root to the stream already attached to the formatter.

public:
 abstract void Serialize(System::IO::Stream ^ serializationStream, System::Object ^ graph);
public abstract void Serialize (System.IO.Stream serializationStream, object graph);
abstract member Serialize : System.IO.Stream * obj -> unit
Public MustOverride Sub Serialize (serializationStream As Stream, graph As Object)

参数

serializationStream
Stream Stream Stream Stream

对象要序列化为的流。The stream to which the objects are serialized.

graph
Object Object Object Object

位于要序列化图形的根位置的对象。The object at the root of the graph to serialize.

实现

继承者说明

必须在派生类中实现此方法。You must implement this method in a derived class.

适用于

另请参阅