Used to markup the persistence version of a class in order to
support the writing of backwards compatible classes.
Inheritance Hierarchy
SystemAttribute
Spotfire.Dxp.Framework.PersistencePersistenceVersionAttribute
Namespace: Spotfire.Dxp.Framework.Persistence
Assembly: Spotfire.Dxp.Framework (in Spotfire.Dxp.Framework.dll) Version: 65.0.19510.3242 (65.0.19510.3242)
Syntax
C#
[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Enum|AttributeTargets.Interface, AllowMultiple = false, Inherited = false)] public sealed class PersistenceVersionAttribute : Attribute
The PersistenceVersionAttribute type exposes the following members.
Constructors
Name | Description | |
---|---|---|
PersistenceVersionAttribute |
Initializes a new instance of the PersistenceVersionAttribute class.
|
Properties
Name | Description | |
---|---|---|
MajorVersion |
Gets the major version.
| |
MinorVersion |
Gets the minor version.
| |
TypeId | When implemented in a derived class, gets a unique identifier for this Attribute. (Inherited from Attribute.) |
Methods
Name | Description | |
---|---|---|
Equals |
Returns a value that indicates whether this instance is equal to a specified object.
(Overrides AttributeEquals(Object).) | |
GetHashCode |
Returns the hash code for this instance.
(Overrides AttributeGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsDefaultAttribute |
When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(Overrides AttributeIsDefaultAttribute.) | |
ToString |
Returns a String that represents the current Object.
(Overrides ObjectToString.) |
Explicit Interface Implementations
Name | Description | |
---|---|---|
_AttributeGetIDsOfNames | Maps a set of names to a corresponding set of dispatch identifiers. (Inherited from Attribute.) | |
_AttributeGetTypeInfo | Retrieves the type information for an object, which can be used to get the type information for an interface. (Inherited from Attribute.) | |
_AttributeGetTypeInfoCount | Retrieves the number of type information interfaces that an object provides (either 0 or 1). (Inherited from Attribute.) | |
_AttributeInvoke | Provides access to properties and methods exposed by an object. (Inherited from Attribute.) |
Remarks
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.
Version Information
Supported in: 14.3, 14.2, 14.1, 14.0, 12.5, 12.4, 12.3, 12.2, 12.1, 12.0, 11.8
See Also