API Reference > imodeljs-common > iModels > IModelVersion IModelVersion Class Option to specify the version of the iModel to be acquired and used Methods Name Description evaluateChangeSet(requestContext: AuthorizedClientRequestContext, iModelId: string, imodelClient: IModelClient): Promise<string> Evaluate the ChangeSet Id corresponding to the version. Deprecated getAsOfChangeSet(): undefined | string Returns the last change set id to be applied to the iModel getName(): undefined | string Returns the name of the version if this describes a named version. toJSON(): IModelVersionProps asOfChangeSet(changeSetId: string): IModelVersion Static Describes a version of the iModel by the last change set that needs first(): IModelVersion Static Describes the first version of the iModel fromJSON(json: IModelVersionProps): IModelVersion Static Creates a version from an IModelVersionProps fromJson(jsonObj: any): IModelVersion Static Creates a version from an untyped JSON object Deprecated latest(): IModelVersion Static Describes the latest version of the iModel named(versionName: string): IModelVersion Static Describes a version of the iModel with the specified version name Properties Name Type Description isFirst Accessor ReadOnly boolean Returns true if this describes the first version isLatest Accessor ReadOnly boolean Returns true if this describes the latest version Defined in core/common/src/IModelVersion.ts Line 27 Last Updated: 12 June, 2024