BinaryFormatter.AssemblyFormat Property
.NET Framework 4
Gets or sets the behavior of the deserializer with regards to finding and loading assemblies.
Assembly: mscorlib (in mscorlib.dll)
Property Value
Type: System.Runtime.Serialization.Formatters.FormatterAssemblyStyleOne of the FormatterAssemblyStyle values that specifies the deserializer behavior.
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.
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?
- 5/13/2011
- Alexander Clare
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.
- 3/30/2011
- Kratz