Formatter.Serialize Method

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.


IFormatter.Serialize(Stream, Object)

Notes to Inheritors

You must implement this method in a derived class.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft