Formatter.Serialize Method (Stream, Object)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

When overridden in a derived class, serializes the graph of objects with the specified root to the stream already attached to the formatter.

Namespace:   System.Runtime.Serialization
Assembly:  mscorlib (in mscorlib.dll)

public abstract void Serialize(
	Stream serializationStream,
	object graph


Type: System.IO.Stream

The stream to which the objects are serialized.

Type: System.Object

The object at the root of the graph to serialize.

Notes to Inheritors:

You must implement this method in a derived class.

.NET Framework
Available since 1.1
Return to top