Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

NetDataContractSerializer::AssemblyFormat Property

 

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:
property FormatterAssemblyStyle AssemblyFormat {
	FormatterAssemblyStyle get();
	void set(FormatterAssemblyStyle value);
}

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:
© 2017 Microsoft