NetDataContractSerializer.AssemblyFormat Property

Definition

Gets a value that specifies a method for locating and loading assemblies.

public System.Runtime.Serialization.Formatters.FormatterAssemblyStyle AssemblyFormat { get; set; }

Property Value

A FormatterAssemblyStyle enumeration value that specifies a method for locating and loading assemblies.

Exceptions

The value being set does not correspond to any of the FormatterAssemblyStyle values.

Remarks

An AssemblyFormat instance can have two styles: Full or Simple. Specifying Simple allows types in one version to be loaded and deserialized from an instance serialized from a different version.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1