Gets the PersistenceVersionAttribute defining in which version the document is being saved.
This method is intended to be called by the GetObjectData method during serialization.
When the document is saved in compatibility mode the document graph and all objects in it are serialized twice, first with the intention of saving the latest version and then saving an earlier version that can be opened by an earlier version of Spotfire. An object that needs to adapt its persisted data so that the saved file can be interpreted by an earlier version of the associated class can switch on the value returned by this method.
Namespace: Spotfire.Dxp.Framework.Persistence
Assembly: Spotfire.Dxp.Framework (in Spotfire.Dxp.Framework.dll) Version: 66.0.19621.1485 (66.0.19621.1485)
Syntax
C#
public static PersistenceVersionAttribute GetPersistingVersion( StreamingContext context )
Parameters
- context
- Type: System.Runtime.SerializationStreamingContext
The context passed to the GetObjectData method during serialization.
Return Value
Type: PersistenceVersionAttributeA PersistenceVersionAttribute instance.
Version Information
Supported in: 14.4, 14.3, 14.2, 14.1, 14.0, 12.5, 12.4, 12.3, 12.2, 12.1, 12.0, 11.8
See Also