BinaryFormatter.Serialize Method (Stream, Object, Header)
Assembly: mscorlib (in mscorlib.dll)
public final function Serialize ( serializationStream : Stream, graph : Object, headers : Header )
The stream to which the object is to be serialized.
The object at the root of the graph to serialize.
Remoting headers to include in the serialization. Can be a null reference (Nothing in Visual Basic).
The serializationStream is a null reference (Nothing in Visual Basic).
An error has occurred during serialization, such as if an object in the graph parameter is not marked as serializable.
The caller does not have the required permission.
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter EditionThe Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.