Formatter.Serialize(Stream, Object) Method

Definition

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)

Parameters

serializationStream
Stream

The stream to which the objects are serialized.

graph
Object

The object at the root of the graph to serialize.

Implements

Notes to Implementers

You must implement this method in a derived class.

Applies to

See also