Used to markup the persistence version of a class in order to
support the writing of backwards compatible classes.
System Object
System Attribute Spotfire.Dxp.Framework.Persistence PersistenceVersionAttributeNamespace: Spotfire.Dxp.Framework.PersistenceAssembly: Spotfire.Dxp.Framework (in Spotfire.Dxp.Framework.dll) Version: 14.10.7525.5058 (14.10.7525.5058)
[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Enum|AttributeTargets.Interface, AllowMultiple = false,
Inherited = false)]
public sealed class PersistenceVersionAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Enum|AttributeTargets.Interface, AllowMultiple = false,
Inherited = false)]
public sealed class PersistenceVersionAttribute : Attribute
During deserialization of a
DocumentNode,
the persistence version of the serialized
type can be retreived by calling
GetPersistedVersion(SerializationInfo, StreamingContext, String).
By inspecting this object, the deserialization code can determine what values to
expect in the serialized format and thus what to deserialize.
Make sure to increment the persistence version of a class whenever the fields that it serializes change
in any way. This includes addition and removal the serialized fields as well as changes of name
and type.
Supported in: 6.5, 6.0, 5.5, 5.0, 4.5