Serialize the object, or graph of objects whose top (root) is specified in the graph argument. The process will include the information, supplied in the Header argument, at the front of the serialized stream.
[Visual Basic] Overloads Overridable Public Sub Serialize( _ ByVal serializationStream As Stream, _ ByVal graph As Object, _ ByVal headers() As Header _ ) [C#] public virtual void Serialize( Stream serializationStream, object graph, Header[] headers ); [C++] public: virtual void Serialize( Stream* serializationStream, Object* graph, Header* headers[] ); [JScript] public function Serialize( serializationStream : Stream, graph : Object, headers : Header[] );
Headers are used only for specific remoting applications. For the moment, you should supply null for the headers argument.
BinaryFormatter Class | BinaryFormatter Members | System.Runtime.Serialization.Formatters.Binary Namespace | BinaryFormatter.Serialize Overload List