public void
Serialize(Stream serializationStream, object graph, Header[] headers);
Serializes the object, or graph of objects with the specified top (root), to the given stream attaching the provided headers.
Полное описание ...
Parameters:
serializationStream:
The stream to which the object is to be serialized.
graph:
The object at the root of the graph to serialize.
headers:
Remoting headers to include in the serialization. Can be null.
Exceptions:
System.ArgumentNullException:
The serializationStream is null.
System.Runtime.Serialization.SerializationException:
An error has occurred during serialization, such as if an object in the graph
parameter is not marked as serializable.
System.Security.SecurityException:
The caller does not have the required permission.