0 out of 1 rated this helpful - Rate this topic

BinaryFormatter.AssemblyFormat Property

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

Namespace:  System.Runtime.Serialization.Formatters.Binary
Assembly:  mscorlib (in mscorlib.dll)
public FormatterAssemblyStyle AssemblyFormat { get; set; }

Property Value

Type: System.Runtime.Serialization.Formatters.FormatterAssemblyStyle
One of the FormatterAssemblyStyle values that specifies the deserializer behavior.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Standard Value wrong??
I have a prototype in which the default-value is "Simple". In my opinion it always has been "Full"! The strange thing is, that even in an .NET 2.0 application the default-value is "Simple". Any explanations?
Default Value
The default value is Full. Be aware that in this mode if you change the version number of your assembly, you will not be able to deserialize objects that were serialized with the old version number. Setting this property to Simple during serialization allows data to be deserialized after the assembly version number has changed.
What's the default?
--