NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

BinaryFormatter.Serialize (Stream, Object, Header[])

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[]
);

Parameters

serializationStream
[To be supplied.]
graph
The object at the root of the graph to be serialized
headers
Remoting headers to be included in the serialization. May be null

Remarks

Headers are used only for specific remoting applications. For the moment, you should supply null for the headers argument.

See Also

BinaryFormatter Class | BinaryFormatter Members | System.Runtime.Serialization.Formatters.Binary Namespace | BinaryFormatter.Serialize Overload List