NetDataContractSerializer.AssemblyFormat Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Runtime.Serialization
Assembly:  System.Runtime.Serialization (in System.Runtime.Serialization.dll)

public FormatterAssemblyStyle AssemblyFormat { get; set; }

Property Value

Type: System.Runtime.Serialization.Formatters.FormatterAssemblyStyle

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

Exception Condition
ArgumentException

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

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.

.NET Framework
Available since 3.0
Return to top
Show: