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 following tables list the members exposed by the BinaryFormatter type.

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

  Name Description
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.

  Name Description
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  Overloaded. Determines whether two Object instances are equal. (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)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (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.