This documentation is archived and is not being maintained.

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.

The Formatter type is not CLS-compliant. For more information about CLS compliance, see What is the Common Language Specification.

[Visual Basic]
Public MustOverride Sub Serialize( _
   ByVal serializationStream As Stream, _
   ByVal graph As Object _
) Implements IFormatter.Serialize
[C#]
public abstract void Serialize(
 Stream serializationStream,
 object graph
);
[C++]
public: virtual void Serialize(
 Stream* serializationStream,
 Object* graph
) = 0;
[JScript]
public abstract function Serialize(
   serializationStream : Stream,
 graph : Object
);

Parameters

serializationStream
The stream to which the objects are serialized.
graph
The object at the root of the graph to serialize.

Implements

IFormatter.Serialize

Remarks

Notes to Inheritors:  You must implement this method in a derived class.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Formatter Class | Formatter Members | System.Runtime.Serialization Namespace | XML and SOAP Serialization

Show: