API Reference > ecschema-Metadata > Metadata > ECVersion ECVersion Class Beta Methods Name Description constructor(read?: number, write?: number, minor?: number): ECVersion The constructor will throw an ECObjectsError if any of the parameters below are above the threshold. compare(rhv: ECVersion): number Compares two schema versions. toString(padZeroes: boolean = true): string Creates a string, in the format 'RR.ww.mm', representing this ECVersion. fromString(versionString: string): ECVersion Static Given a valid version string the Properties Name Type Description minor Accessor ReadOnly number read Accessor ReadOnly number write Accessor ReadOnly number Defined in core/ecschema-metadata/src/SchemaKey.ts Line 17 Last Updated: 12 June, 2024