Repository.Model.GetModel

Note regarding compound analytical models: After you connect to a database and create the cModel using Repository Class (GetModel or GetAllModels methods), the Repository Class must stay connected to the same database until you are done working with the model.

Syntax

 * GetModel( ID)cModel

Parameters
 * ID: The ID of the model to retrieve.

Usage Example
Private WithEvents MyRepository As New Repository

Dim Success As Boolean = False Success = MyRepository.ConnectToRepository("RepositoryFileNamePath")

Dim ListOfModels As NameIdPair ListOfModels = MyRepository.GetAllModelsInfo

Dim AModel as cModel AModel = MyRepository.GetModel(ListOfModels(0).ID)