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

定義

當覆寫於衍生類別時,使用已附加於格式子的資料流指定根 (Root),序列化物件的 Graph。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

物件,位在要序列化的 Graph 的根。The object at the root of the graph to serialize.

實作

給繼承者的注意事項

您必須在衍生類別中執行此方法。You must implement this method in a derived class.

適用於

另請參閱