Gets or sets the version associated with the data stream from which this object was deserialized.

Namespace: Tangosol.IO
Assembly: Coherence (in Coherence.dll) Version: 12.1.2.0 (12.1.2.0)

Syntax

C#
int DataVersion { get; set; }

Field Value

The version of the data used to initialize this object, greater than or equal to zero.

Remarks

If the object was constructed (not deserialized), the data version is the same as the implementation version.

Exceptions

ExceptionCondition
System..::..ArgumentException If the specified version is negative.
System..::..InvalidOperationException If the object is not in a state in which the version can be set, for example outside of deserialization.

See Also