int ComponentVersion { get; set; }

robot_2Generated
code_blocksInput

Description

The ComponentVersion property represents the version of the component. It is utilized by the JsonUpgrader to manage component versioning and ensure compatibility during serialization and deserialization processes.

Usage

Use the ComponentVersion property to track and manage the version of a component. This is particularly useful when you need to upgrade or migrate data between different versions of a component.

Example

// Example of accessing the ComponentVersion property
public class MyComponent : Component
{
    public void CheckVersion()
    {
        int version = this.ComponentVersion;
        if (version < 2)
        {
            // Perform upgrade logic
        }
    }
}