This documentation is archived and is not being maintained.

BinaryFormatter Members

Serializes and deserializes an object, or an entire graph of connected objects, in binary format.

The BinaryFormatter type exposes the following members.

Public method BinaryFormatter Overloaded. Initializes a new instance of the BinaryFormatter class.

Public method Deserialize Overloaded. Deserializes a stream into an object graph.
Public method DeserializeMethodResponse Deserializes a response to a remote method call from the provided Stream.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Serialize Overloaded. Serializes an object, or graph of connected objects, to the given stream.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method UnsafeDeserialize Deserializes the specified stream into an object graph. The provided HeaderHandler handles any headers in that stream.
Public method UnsafeDeserializeMethodResponse Deserializes a response to a remote method call from the provided Stream.

Public property AssemblyFormat Gets or sets the behavior of the deserializer with regards to finding and loading assemblies.
Public property Binder Gets or sets an object of type SerializationBinder that controls the binding of a serialized object to a type.
Public property Context Gets or sets the StreamingContext for this formatter.
Public property FilterLevel Gets or sets the TypeFilterLevel of automatic deserialization the BinaryFormatter performs.
Public property SurrogateSelector Gets or sets a ISurrogateSelector that controls type substitution during serialization and deserialization.
Public property TypeFormat Gets or sets the format in which type descriptions are laid out in the serialized stream.