System.Runtime.Serialization.Formatters.Binary.BinaryFormatter Members

The members of System.Runtime.Serialization.Formatters.Binary.BinaryFormatter are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the System.Runtime.Serialization.Formatters.Binary.BinaryFormatter class with default values.

Initializes a new instance of the System.Runtime.Serialization.Formatters.Binary.BinaryFormatter class with a given surrogate selector and streaming context.

Public Properties

AssemblyFormatSystem.Runtime.Serialization.Formatters.FormatterAssemblyStyle.

Gets or sets the behavior of the deserializer with regards to finding and loading assemblies.

BinderSystem.Runtime.Serialization.SerializationBinder.

Gets or sets an object of type System.Runtime.Serialization.SerializationBinder that controls the binding of a serialized object to a type.

ContextSystem.Runtime.Serialization.StreamingContext.

Gets or sets the System.Runtime.Serialization.StreamingContext for this formatter.

FilterLevelSystem.Runtime.Serialization.Formatters.TypeFilterLevel.

Gets or sets the System.Runtime.Serialization.Formatters.TypeFilterLevel of automatic deserialization the System.Runtime.Serialization.Formatters.Binary.BinaryFormatter performs.

SurrogateSelectorSystem.Runtime.Serialization.ISurrogateSelector.

Gets or sets a System.Runtime.Serialization.ISurrogateSelector that controls type substitution during serialization and deserialization.

TypeFormatSystem.Runtime.Serialization.Formatters.FormatterTypeStyle.

Gets or sets the format in which type descriptions are laid out in the serialized stream.

Public Methods

Deserialize(System.IO.Stream) : object

Deserializes the specified stream into an object graph.

Deserialize(System.IO.Stream, System.Runtime.Remoting.Messaging.HeaderHandler) : object

Deserializes the specified stream into an object graph. The provided System.Runtime.Remoting.Messaging.HeaderHandler handles any headers in that stream.

DeserializeMethodResponse(System.IO.Stream, System.Runtime.Remoting.Messaging.HeaderHandler, System.Runtime.Remoting.Messaging.IMethodCallMessage) : object

Deserializes a response to a remote method call from the provided System.IO.Stream.

Serialize(System.IO.Stream, object)

Serializes the object, or graph of objects with the specified top (root), to the given stream.

Serialize(System.IO.Stream, object, System.Runtime.Remoting.Messaging.Header[])

Serializes the object, or graph of objects with the specified top (root), to the given stream attaching the provided headers.

UnsafeDeserialize(System.IO.Stream, System.Runtime.Remoting.Messaging.HeaderHandler) : object

Deserializes the specified stream into an object graph. The provided System.Runtime.Remoting.Messaging.HeaderHandler handles any headers in that stream.

UnsafeDeserializeMethodResponse(System.IO.Stream, System.Runtime.Remoting.Messaging.HeaderHandler, System.Runtime.Remoting.Messaging.IMethodCallMessage) : object

Deserializes a response to a remote method call from the provided System.IO.Stream.